From 4ee0c34b3ecb3edb41963156e49cc5bcdf8f96a3 Mon Sep 17 00:00:00 2001 From: Julio Montoya Date: Sun, 24 Mar 2013 17:42:02 +0100 Subject: [PATCH] Minor code style changes --- main/admin/index.php | 8 ++++---- main/create_course/add_course.php | 2 +- main/inc/lib/chamilo_session.class.php | 1 + main/inc/lib/internationalization.lib.php | 1 - main/inc/lib/main_api.lib.php | 7 +++---- main/inc/lib/template.lib.php | 8 ++++---- resources/config/prod.php | 3 +++ src/ChamiloLMS/Command/Database/InstallCommand.php | 5 ++++- 8 files changed, 20 insertions(+), 15 deletions(-) diff --git a/main/admin/index.php b/main/admin/index.php index 20cb6181c5..531c0471fa 100644 --- a/main/admin/index.php +++ b/main/admin/index.php @@ -27,7 +27,6 @@ $nameTools = get_lang('PlatformAdmin'); // Displaying the header $message = ''; - if (api_is_platform_admin()) { if (is_dir(api_get_path(SYS_CODE_PATH).'install/') && is_readable(api_get_path(SYS_CODE_PATH).'install/index.php')) { $message = Display::return_message(get_lang('InstallDirAccessibleSecurityThreat'),'warning'); @@ -299,9 +298,10 @@ if (api_is_platform_admin()) { $blocks['version_check']['items'] = null; } -$tpl = new Template(); -$tpl->assign('blocks', $blocks); -$tpl->display('default/admin/settings_index.tpl'); +$app['template']->assign('blocks', $blocks); +//$app['template']->display('default/admin/settings_index.tpl'); +//$app['default_layout'] = $app['template_style'].'/admin/settings_index.tpl'; +$app['template']->display('default/admin/settings_index.tpl'); /** * Displays either the text for the registration or the message that the installation is (not) up to date diff --git a/main/create_course/add_course.php b/main/create_course/add_course.php index 03d3320f9c..44c9736fde 100644 --- a/main/create_course/add_course.php +++ b/main/create_course/add_course.php @@ -36,7 +36,7 @@ if ($course_validation_feature) { require_once api_get_path(LIBRARY_PATH).'course_request.lib.php'; } -$htmlHeadXtra[] = '