From 204171f0948a511ae54b1bebf63e31a87fa9056b Mon Sep 17 00:00:00 2001 From: jmontoyaa Date: Wed, 28 Feb 2018 14:29:34 +0100 Subject: [PATCH] Minor - format code --- main/install/install.lib.php | 57 +++++++++++++++++++++--------------- 1 file changed, 33 insertions(+), 24 deletions(-) diff --git a/main/install/install.lib.php b/main/install/install.lib.php index 8dd69a6a69..8deda7c306 100755 --- a/main/install/install.lib.php +++ b/main/install/install.lib.php @@ -58,7 +58,8 @@ function isAlreadyInstalledSystem() * @param string $returnSuccess Text to show when extension is available (defaults to 'Yes') * @param string $returnFailure Text to show when extension is available (defaults to 'No') * @param boolean $optional Whether this extension is optional (then show unavailable text in orange rather than red) - * @param string $enabledTerm If this string is not null, then use to check if the corresponding parameter is = 1. If not, mention it's present but not enabled. For example, for opcache, this should be 'opcache.enable' + * @param string $enabledTerm If this string is not null, then use to check if the corresponding parameter is = 1. + * If not, mention it's present but not enabled. For example, for opcache, this should be 'opcache.enable' * @return string HTML string reporting the status of this extension. Language-aware. * @author Christophe Gesch?? * @author Patrick Cool , Ghent University @@ -390,19 +391,21 @@ function write_system_config_file($path) $fp = @ fopen($path, 'w'); if (!$fp) { - echo 'Your script doesn\'t have write access to the config directory
- ('.str_replace('\\', '/', realpath($path)).')

- You probably do not have write access on Chamilo root directory, - i.e. you should CHMOD 777 or 755 or 775.

- Your problems can be related on two possible causes:
- - Read about this problem in Support Forum

- Please go back to step 5. -

- '; + echo ' + Your script doesn\'t have write access to the config directory
+ ('.str_replace('\\', '/', realpath($path)).')

+ You probably do not have write access on Chamilo root directory, + i.e. you should CHMOD 777 or 755 or 775.

+ Your problems can be related on two possible causes:
+ + Read about this problem in Support Forum

+ Please go back to step 5. +

+ '; exit; } @@ -717,7 +720,8 @@ function display_requirements( echo '

'.display_step_sequence().get_lang('Requirements')."

"; echo '
'; echo ''.get_lang('ReadThoroughly').'
'; - echo get_lang('MoreDetails').' '.get_lang('ReadTheInstallationGuide').'.
'."\n"; + echo get_lang('MoreDetails').' '. + get_lang('ReadTheInstallationGuide').'.
'."\n"; if ($installType == 'update') { echo get_lang('IfYouPlanToUpgradeFromOlderVersionYouMightWantToHaveAlookAtTheChangelog').'
'; @@ -729,7 +733,7 @@ function display_requirements( if (!$properlyAccessUrl) { echo '
- ' . Display::return_icon('error.png', get_lang('Error'), [], ICON_SIZE_MEDIUM, true, false, true). + '.Display::return_icon('error.png', get_lang('Error'), [], ICON_SIZE_MEDIUM, true, false, true). ' '. sprintf(get_lang('InstallMultiURLDetectedNotMainURL'), api_get_configuration_value('root_web')).'
@@ -738,7 +742,6 @@ function display_requirements( // SERVER REQUIREMENTS echo '

'.get_lang('ServerRequirements').'

'; - $timezone = checkPhpSettingExists("date.timezone"); if (!$timezone) { echo "
". @@ -1660,7 +1663,13 @@ function display_configuration_settings_form( // Parameter 1: administrator's login $html = ''; - $html .= display_configuration_parameter($installType, get_lang('AdminLogin'), 'loginForm', $loginForm, $installType == 'update'); + $html .= display_configuration_parameter( + $installType, + get_lang('AdminLogin'), + 'loginForm', + $loginForm, + $installType == 'update' + ); // Parameter 2: administrator's password if ($installType != 'update') { @@ -1669,7 +1678,12 @@ function display_configuration_settings_form( // Parameters 3 and 4: administrator's names - $html .= display_configuration_parameter($installType, get_lang('AdminFirstName'), 'adminFirstName', $adminFirstName); + $html .= display_configuration_parameter( + $installType, + get_lang('AdminFirstName'), + 'adminFirstName', + $adminFirstName + ); $html .= display_configuration_parameter($installType, get_lang('AdminLastName'), 'adminLastName', $adminLastName); //Parameter 3: administrator's email @@ -1873,8 +1887,6 @@ function get_countries_list_from_array($combo = false) "Yemen", "Zambia", "Zimbabwe" ]; - - $country_select = ''; if ($combo) { $country_select = '