diff --git a/index.php b/index.php
index 5449628784..23e2d83039 100644
--- a/index.php
+++ b/index.php
@@ -168,20 +168,22 @@ if (api_get_setting('display_categories_on_homepage') == 'true') {
echo '';
}
-
-$tpl = $controller->tpl->get_template('layout/layout_2_col.tpl');
$controller->set_login_form();
//@todo move this inside the IndexManager
if (!api_is_anonymous()) {
- $controller->tpl->assign('profile_block', $controller->return_profile_block());
- $controller->tpl->assign('teacher_block', $controller->return_teacher_link());
+ $controller->tpl->assign('profile_block', $controller->return_profile_block());
+
+ if (api_is_platform_admin()) {
+ $controller->tpl->assign('account_block', $controller->return_account_block());
+ } else {
+ $controller->tpl->assign('teacher_block', $controller->return_teacher_link());
+ }
}
$controller->tpl->assign('announcements_block', $controller->return_announcements());
-
$controller->tpl->assign('home_page_block', $controller->return_home_page());
$controller->tpl->assign('notice_block', $controller->return_notice());
$controller->tpl->assign('plugin_campushomepage', $controller->return_plugin_campushomepage());
-$controller->tpl->display($tpl);
+$controller->tpl->display_two_col_template();
\ No newline at end of file
diff --git a/main/install/index.php b/main/install/index.php
old mode 100755
new mode 100644
index 830cde9dc0..ef603b4f48
--- a/main/install/index.php
+++ b/main/install/index.php
@@ -484,16 +484,17 @@ if ($encryptPassForm == '1') {
- ';
- echo get_lang('ChamiloInstallation').' – '.get_lang('Version_').' '.$new_version;
- echo '';
- echo '';
+ '.get_lang('ChamiloInstallation').' – '.get_lang('Version_').' '.$new_version.'';
+
+ $instalation_type_label = '';
if ($installType == 'new')
- echo get_lang('NewInstallation');
+ $instalation_type_label = get_lang('NewInstallation');
elseif ($installType == 'update')
- echo get_lang('UpdateFromDokeosVersion').(is_array($update_from_version) ? implode('|', $update_from_version) : '');
- echo ' ';
+ $instalation_type_label = get_lang('UpdateFromDokeosVersion').(is_array($update_from_version) ? implode('|', $update_from_version) : '');
+ if (!empty($instalation_type_label)) {
+ echo "$instalation_type_label ";
+ }
?>
@@ -685,8 +686,11 @@ if ($_POST['step2']) {
-
diff --git a/main/install/install.lib.php b/main/install/install.lib.php
index 7e4b38127e..d5ee06ff20 100755
--- a/main/install/install.lib.php
+++ b/main/install/install.lib.php
@@ -719,9 +719,9 @@ function load_database_script($db_script) {
//execute the sql instructions
$count = count($sql_instructions);
for ($i = 0; $i < $count; $i++) {
- $this_sql_query = $sql_instructions[$i]['query'];
+ $this_sql_query = $sql_instructions[$i]['query'];
Database::query($this_sql_query);
- }
+ }
}
/**
@@ -1346,7 +1346,7 @@ function display_requirements($installType, $badUpdatePath, $updatePath = '', $u
// And now display the choice buttons (go back or install)
?>
-
+
@@ -1380,7 +1380,10 @@ function display_license_agreement() {
?>
|
-
+
+
|
|
@@ -1388,7 +1391,7 @@ function display_license_agreement() {
|
- |
+
|
@@ -1515,13 +1518,13 @@ function get_contact_registration_form() {
-
+
-
-
-
+
+
+
@@ -1639,7 +1642,7 @@ function display_database_settings_form($installType, $dbHostForm, $dbUsernameFo
-
+
| |
@@ -1779,7 +1782,7 @@ function display_configuration_settings_form($installType, $urlForm, $languageFo
echo '';
echo " ";
- echo "";
+ echo '';
//First parameter: language
echo "\n";
@@ -1928,10 +1931,9 @@ function display_after_install_message($installType, $nbr_courses) {
echo ': ';
printf(get_lang('ToProtectYourSiteMakeXAndYReadOnly'), 'main/inc/conf/configuration.php', 'main/install/index.php');
echo '';
- ?>
-
-
-
+ ?>
+
+
| | | |