|
@@ -209,7 +209,7 @@ $app['allowed'] = true;
|
|
$app['template.show_header'] = true;
|
|
$app['template.show_header'] = true;
|
|
$app['template.show_footer'] = true;
|
|
$app['template.show_footer'] = true;
|
|
$app['template.show_learnpath'] = false;
|
|
$app['template.show_learnpath'] = false;
|
|
-$app['template.hide_global_chat'] = !api_is_global_chat_enabled();
|
|
|
|
|
|
+$app['template.hide_global_chat'] = true;
|
|
$app['template.load_plugins'] = true;
|
|
$app['template.load_plugins'] = true;
|
|
|
|
|
|
// Default template style
|
|
// Default template style
|
|
@@ -356,6 +356,9 @@ $app['this_section'] = SECTION_GLOBAL;
|
|
// include the local (contextual) parameters of this course or section
|
|
// include the local (contextual) parameters of this course or section
|
|
require $includePath.'/local.inc.php';
|
|
require $includePath.'/local.inc.php';
|
|
|
|
|
|
|
|
+// reconfigure templat now we know the user
|
|
|
|
+$app['template.hide_global_chat'] = !api_is_global_chat_enabled();
|
|
|
|
+
|
|
// Setting languages
|
|
// Setting languages
|
|
$app['api_get_languages'] = api_get_languages();
|
|
$app['api_get_languages'] = api_get_languages();
|
|
|
|
|
|
@@ -533,7 +536,7 @@ if (api_get_setting('login_is_email') == 'true') {
|
|
$default_username_length = 100;
|
|
$default_username_length = 100;
|
|
}
|
|
}
|
|
|
|
|
|
-define('USERNAME_MAX_LENGTH', $default_username_length);
|
|
|
|
|
|
+@define('USERNAME_MAX_LENGTH', $default_username_length);
|
|
|
|
|
|
/** Silex Middlewares: */
|
|
/** Silex Middlewares: */
|
|
|
|
|
|
@@ -650,7 +653,7 @@ if (empty($default_quota)) {
|
|
$default_quota = 100000000;
|
|
$default_quota = 100000000;
|
|
}
|
|
}
|
|
|
|
|
|
-define('DEFAULT_DOCUMENT_QUOTA', $default_quota);
|
|
|
|
|
|
+@define('DEFAULT_DOCUMENT_QUOTA', $default_quota);
|
|
|
|
|
|
/** Setting the is_admin key */
|
|
/** Setting the is_admin key */
|
|
$app['is_admin'] = false;
|
|
$app['is_admin'] = false;
|
|
@@ -662,4 +665,4 @@ require_once 'routes.php';
|
|
$_course = api_get_course_info();
|
|
$_course = api_get_course_info();
|
|
$_cid = api_get_course_id();
|
|
$_cid = api_get_course_id();
|
|
|
|
|
|
-return $app;
|
|
|
|
|
|
+return $app;
|