diff --git a/main/install/index.php b/main/install/index.php
index 42796143dc..ec00af0be3 100755
--- a/main/install/index.php
+++ b/main/install/index.php
@@ -78,14 +78,11 @@ $language_interface_initial_value = $install_language;
// Character set during the installation, it is always to be 'UTF-8'.
$charset = 'UTF-8';
-// Initialization of the internationalization library.
-api_initialize_internationalization();
-// Initialization of the default encoding that will be used by the multibyte
-// string routines in the internationalization library.
-api_set_internationalization_default_encoding($charset);
+// Enables the portablity layer and configures PHP for UTF-8
+\Patchwork\Utf8\Bootup::initAll();
// Page encoding initialization.
-header('Content-Type: text/html; charset='. api_get_system_encoding());
+header('Content-Type: text/html; charset='. $charset);
// Setting the error reporting levels.
error_reporting(E_ALL);
@@ -564,12 +561,7 @@ if (@$_POST['step2']) {
echo get_lang('AdminPass') . ' : ' . $passForm . '
'; /* TODO: Maybe this password should be hidden too? */
}
- if (api_is_western_name_order()) {
- echo get_lang('AdminFirstName').' : '.$adminFirstName, '
', get_lang('AdminLastName').' : '.$adminLastName, '
';
- } else {
- echo get_lang('AdminLastName').' : '.$adminLastName, '
', get_lang('AdminFirstName').' : '.$adminFirstName, '
';
- }
-
+ echo get_lang('AdminFirstName').' : '.$adminFirstName, '
', get_lang('AdminLastName').' : '.$adminLastName, '
';
echo get_lang('AdminEmail').' : '.$emailForm; ?>
diff --git a/main/install/install.lib.php b/main/install/install.lib.php
index 4ee895c7a1..2a37a3045b 100755
--- a/main/install/install.lib.php
+++ b/main/install/install.lib.php
@@ -922,6 +922,18 @@ function display_requirements(
'.api_get_path(SYS_COURSE_PATH).' |
'.check_writable(api_get_path(SYS_COURSE_PATH)).' |
+
+ '.api_get_path(SYS_APP_PATH).'home/ |
+ '.check_writable(api_get_path(SYS_APP_PATH).'home/').' |
+
+
+ '.api_get_path(SYS_CODE_PATH).'css/ |
+ '.check_writable(api_get_path(SYS_CODE_PATH).'css/', true).' ('.get_lang('SuggestionOnlyToEnableCSSUploadFeature').') |
+
+
+ '.api_get_path(SYS_CODE_PATH).'lang/ |
+ '.check_writable(api_get_path(SYS_CODE_PATH).'lang/', true).' ('.get_lang('SuggestionOnlyToEnableSubLanguageFeature').') |
+
'.get_lang('CourseTestWasCreated').' |
'.$courseTestLabel.' |
@@ -934,18 +946,7 @@ function display_requirements(
'.get_lang('PermissionsForNewFiles').' |
'.$file_perm.' |
-
- '.api_get_path(SYS_APP_PATH).'home/ |
- '.check_writable(api_get_path(SYS_APP_PATH).'home/').' |
-
-
- '.api_get_path(SYS_CODE_PATH).'css/ |
- '.check_writable(api_get_path(SYS_CODE_PATH).'css/', true).' ('.get_lang('SuggestionOnlyToEnableCSSUploadFeature').') |
-
-
- '.api_get_path(SYS_CODE_PATH).'lang/ |
- '.check_writable(api_get_path(SYS_CODE_PATH).'lang/', true).' ('.get_lang('SuggestionOnlyToEnableSubLanguageFeature').') |
-
'.
+ '.
//'
// chamilo/searchdb/ |
// '.check_writable('../searchdb/').' |
@@ -1542,13 +1543,9 @@ function display_configuration_settings_form(
}
// Parameters 3 and 4: administrator's names
- if (api_is_western_name_order()) {
- display_configuration_parameter($installType, get_lang('AdminFirstName'), 'adminFirstName', $adminFirstName);
- display_configuration_parameter($installType, get_lang('AdminLastName'), 'adminLastName', $adminLastName);
- } else {
- display_configuration_parameter($installType, get_lang('AdminLastName'), 'adminLastName', $adminLastName);
- display_configuration_parameter($installType, get_lang('AdminFirstName'), 'adminFirstName', $adminFirstName);
- }
+
+ display_configuration_parameter($installType, get_lang('AdminFirstName'), 'adminFirstName', $adminFirstName);
+ display_configuration_parameter($installType, get_lang('AdminLastName'), 'adminLastName', $adminLastName);
//Parameter 3: administrator's email
display_configuration_parameter($installType, get_lang('AdminEmail'), 'emailForm', $emailForm);
@@ -1805,7 +1802,7 @@ function check_course_script_interpretation($course_dir, $course_attempt_name, $
if (fwrite($handler, $content)) {
$sock_errno = '';
$sock_errmsg = '';
- $url = api_get_path(WEB_COURSE_PATH).$course_attempt_name.'/'.$file;
+ $url = api_get_path(WEB_PATH).'app/courses/'.$course_attempt_name.'/'.$file;
$parsed_url = parse_url($url);
//$scheme = isset($parsedUrl['scheme']) ? $parsedUrl['scheme'] : ''; //http