#4694,#4712, #4712 add feedback during installation, remove warnings Undefined variable

skala
Laurent Opprecht 13 years ago
parent 4137c340b4
commit ada71dddb1
  1. 1
      main/inc/lib/database.lib.php
  2. 7
      main/install/index.php

@ -425,6 +425,7 @@ class Database {
$password = isset($parameters['password']) ? $parameters['password'] : null;
$client_flag = isset($parameters['client_flags']) ? $parameters['client_flags'] : null;
$new_link = isset($parameters['new_link']) ? $parameters['new_link'] : null;
$client_flags = isset($parameters['client_flags']) ? $parameters['client_flags'] : null;
return $persistent
? mysql_pconnect($server, $username, $password, $client_flags)
: mysql_connect($server, $username, $password, $new_link, $client_flags);

@ -491,10 +491,12 @@ if ($encryptPassForm == '1') {
echo '<div class="page-header"><h1>'.get_lang('ChamiloInstallation').' &ndash; '.get_lang('Version_').' '.$new_version.'</h1></div>';
$instalation_type_label = '';
if ($installType == 'new')
if ($installType == 'new'){
$instalation_type_label = get_lang('NewInstallation');
elseif ($installType == 'update')
}elseif ($installType == 'update') {
$update_from_version = isset($update_from_version) ? $update_from_version : null;
$instalation_type_label = get_lang('UpdateFromDokeosVersion').(is_array($update_from_version) ? implode('|', $update_from_version) : '');
}
if (!empty($instalation_type_label)) {
echo "<h2>$instalation_type_label</h2><hr />";
}
@ -822,6 +824,7 @@ if (@$_POST['step2']) {
include 'install_files.inc.php';
}
$current_step = 7;
$nbr_courses = isset($nbr_courses) ? $nbr_courses : null;
display_after_install_message($installType, $nbr_courses);
} elseif ($_POST['step1'] || $badUpdatePath) {

Loading…
Cancel
Save