diff --git a/application/config/routes.php b/application/config/routes.php index 63f9ab61e..f872dc145 100644 --- a/application/config/routes.php +++ b/application/config/routes.php @@ -50,7 +50,7 @@ defined('BASEPATH') OR exit('No direct script access allowed'); | Examples: my-controller/index -> my_controller/index | my-controller/my-method -> my_controller/my_method */ -$route['default_controller'] = 'Vilesci'; +$route['default_controller'] = defined('CIS4') && CIS4 ? 'Cis4' : 'Vilesci'; $route['translate_uri_dashes'] = FALSE; // Class name conflicts diff --git a/application/views/Cis/Documents.php b/application/views/Cis/Documents.php index 1e7b0ea48..191558d86 100644 --- a/application/views/Cis/Documents.php +++ b/application/views/Cis/Documents.php @@ -1,5 +1,6 @@ 'Documents', 'tabulator5' => true, 'customJSModules' => ['public/js/apps/Cis/Documents.js'] ); diff --git a/application/views/Cis/MyLv.php b/application/views/Cis/MyLv.php index 3dc7c494d..ff03f3b51 100644 --- a/application/views/Cis/MyLv.php +++ b/application/views/Cis/MyLv.php @@ -1,5 +1,6 @@ 'MyLv', 'customJSModules' => ['public/js/apps/Cis/MyLv/Student.js'] ); diff --git a/application/views/Cis/Stundenplan.php b/application/views/Cis/Stundenplan.php index f4b3dbc15..cb8f8a712 100644 --- a/application/views/Cis/Stundenplan.php +++ b/application/views/Cis/Stundenplan.php @@ -1,5 +1,6 @@ 'Stundenplan', 'customJSModules' => ['public/js/apps/Cis/Stundenplan.js'], 'customCSSs' => ['public/css/components/calendar.css'] ); diff --git a/application/views/CisHtml/Dashboard.php b/application/views/CisHtml/Dashboard.php index adb038a35..1b023191e 100644 --- a/application/views/CisHtml/Dashboard.php +++ b/application/views/CisHtml/Dashboard.php @@ -1,5 +1,6 @@ 'Dashboard', 'customJSModules' => ['public/js/apps/Dashboard/Fhc.js'], 'customCSSs' => [ 'public/css/components/dashboard.css' diff --git a/cis.php b/cis.php index 725a4017f..76f23d043 100644 --- a/cis.php +++ b/cis.php @@ -58,6 +58,7 @@ // Loads FHC config files require_once 'config/global.config.inc.php'; require_once 'config/cis.config.inc.php'; +define('CIS4', true); // Check if the CI_ENVIRONMENT constants is set and eventually use it to set the CI_ENV environment variable if (defined('CI_ENVIRONMENT')) $_SERVER['CI_ENV'] = CI_ENVIRONMENT;