Julio Montoya преди 11 години
родител
ревизия
e01faea820
променени са 1 файла, в които са добавени 4 реда и са изтрити 2 реда
  1. 4 2
      main/inc/global.inc.php

+ 4 - 2
main/inc/global.inc.php

@@ -168,9 +168,11 @@ $app['languages_file'] = array();
 $app['installed'] = $alreadyInstalled;
 $app['app.theme'] = 'chamilo';
 
-// Loading $app settings
-$app['debug'] = isset($configuration['debug']) ? $configuration['debug'] : false;
+// Debug now relies in the configuration.php file
 
+$app['debug'] = isset($_configuration['debug']) ? $_configuration['debug'] : false;
+
+// Loading $app settings depending of the debug option
 if ($app['debug']) {
     require_once __DIR__.'/../../src/ChamiloLMS/Resources/config/dev.php';
 } else {