@@ -13,7 +13,7 @@ discard block |
||
| 13 | 13 | * current configuration file. |
| 14 | 14 | * @package chamilo.install |
| 15 | 15 | */ |
| 16 | -error_log("Starting " . basename(__FILE__)); |
|
| 16 | +error_log("Starting ".basename(__FILE__)); |
|
| 17 | 17 | |
| 18 | 18 | global $debug; |
| 19 | 19 | |
@@ -142,12 +142,12 @@ discard block |
||
| 142 | 142 | |
| 143 | 143 | $list = scandir($langPath); |
| 144 | 144 | foreach ($list as $entry) { |
| 145 | - if (is_dir($langPath . $entry) && |
|
| 145 | + if (is_dir($langPath.$entry) && |
|
| 146 | 146 | in_array($entry, $officialLanguages) |
| 147 | 147 | ) { |
| 148 | 148 | foreach ($filesToDelete as $file) { |
| 149 | - if (is_file($langPath . $entry . '/' . $file . '.inc.php')) { |
|
| 150 | - unlink($langPath . $entry . '/' . $file . '.inc.php'); |
|
| 149 | + if (is_file($langPath.$entry.'/'.$file.'.inc.php')) { |
|
| 150 | + unlink($langPath.$entry.'/'.$file.'.inc.php'); |
|
| 151 | 151 | } |
| 152 | 152 | } |
| 153 | 153 | } |
@@ -172,12 +172,12 @@ discard block |
||
| 172 | 172 | |
| 173 | 173 | // Move dirs into new structures. |
| 174 | 174 | $movePathList = [ |
| 175 | - api_get_path(SYS_CODE_PATH).'upload/users/groups' => api_get_path(SYS_UPLOAD_PATH) . 'groups', |
|
| 176 | - api_get_path(SYS_CODE_PATH).'upload/users' => api_get_path(SYS_UPLOAD_PATH) . 'users', |
|
| 177 | - api_get_path(SYS_CODE_PATH).'upload/badges' => api_get_path(SYS_UPLOAD_PATH) . 'badges', |
|
| 178 | - api_get_path(SYS_PATH).'courses' => api_get_path(SYS_APP_PATH) . 'courses', |
|
| 175 | + api_get_path(SYS_CODE_PATH).'upload/users/groups' => api_get_path(SYS_UPLOAD_PATH).'groups', |
|
| 176 | + api_get_path(SYS_CODE_PATH).'upload/users' => api_get_path(SYS_UPLOAD_PATH).'users', |
|
| 177 | + api_get_path(SYS_CODE_PATH).'upload/badges' => api_get_path(SYS_UPLOAD_PATH).'badges', |
|
| 178 | + api_get_path(SYS_PATH).'courses' => api_get_path(SYS_APP_PATH).'courses', |
|
| 179 | 179 | api_get_path(SYS_PATH).'searchdb' => api_get_path(SYS_UPLOAD_PATH).'plugins/xapian/', |
| 180 | - api_get_path(SYS_PATH).'home' => api_get_path(SYS_APP_PATH) . 'home' |
|
| 180 | + api_get_path(SYS_PATH).'home' => api_get_path(SYS_APP_PATH).'home' |
|
| 181 | 181 | ]; |
| 182 | 182 | |
| 183 | 183 | if ($debug) { |
@@ -240,7 +240,7 @@ discard block |
||
| 240 | 240 | @rrmdir(api_get_path(SYS_PATH).'archive'); |
| 241 | 241 | |
| 242 | 242 | } else { |
| 243 | - echo 'You are not allowed here !'. __FILE__; |
|
| 243 | + echo 'You are not allowed here !'.__FILE__; |
|
| 244 | 244 | } |
| 245 | 245 | |
| 246 | 246 | /** |