@@ -14,7 +14,7 @@ discard block |
||
| 14 | 14 | * current configuration file. |
| 15 | 15 | * @package chamilo.install |
| 16 | 16 | */ |
| 17 | -error_log("Starting " . basename(__FILE__)); |
|
| 17 | +error_log("Starting ".basename(__FILE__)); |
|
| 18 | 18 | |
| 19 | 19 | global $debug; |
| 20 | 20 | |
@@ -143,12 +143,12 @@ discard block |
||
| 143 | 143 | |
| 144 | 144 | $list = scandir($langPath); |
| 145 | 145 | foreach ($list as $entry) { |
| 146 | - if (is_dir($langPath . $entry) && |
|
| 146 | + if (is_dir($langPath.$entry) && |
|
| 147 | 147 | in_array($entry, $officialLanguages) |
| 148 | 148 | ) { |
| 149 | 149 | foreach ($filesToDelete as $file) { |
| 150 | - if (is_file($langPath . $entry . '/' . $file . '.inc.php')) { |
|
| 151 | - unlink($langPath . $entry . '/' . $file . '.inc.php'); |
|
| 150 | + if (is_file($langPath.$entry.'/'.$file.'.inc.php')) { |
|
| 151 | + unlink($langPath.$entry.'/'.$file.'.inc.php'); |
|
| 152 | 152 | } |
| 153 | 153 | } |
| 154 | 154 | } |
@@ -173,12 +173,12 @@ discard block |
||
| 173 | 173 | |
| 174 | 174 | // Move dirs into new structures. |
| 175 | 175 | $movePathList = [ |
| 176 | - api_get_path(SYS_CODE_PATH).'upload/users/groups' => api_get_path(SYS_UPLOAD_PATH) . 'groups', |
|
| 177 | - api_get_path(SYS_CODE_PATH).'upload/users' => api_get_path(SYS_UPLOAD_PATH) . 'users', |
|
| 178 | - api_get_path(SYS_CODE_PATH).'upload/badges' => api_get_path(SYS_UPLOAD_PATH) . 'badges', |
|
| 179 | - api_get_path(SYS_PATH).'courses' => api_get_path(SYS_APP_PATH) . 'courses', |
|
| 176 | + api_get_path(SYS_CODE_PATH).'upload/users/groups' => api_get_path(SYS_UPLOAD_PATH).'groups', |
|
| 177 | + api_get_path(SYS_CODE_PATH).'upload/users' => api_get_path(SYS_UPLOAD_PATH).'users', |
|
| 178 | + api_get_path(SYS_CODE_PATH).'upload/badges' => api_get_path(SYS_UPLOAD_PATH).'badges', |
|
| 179 | + api_get_path(SYS_PATH).'courses' => api_get_path(SYS_APP_PATH).'courses', |
|
| 180 | 180 | api_get_path(SYS_PATH).'searchdb' => api_get_path(SYS_UPLOAD_PATH).'plugins/xapian/', |
| 181 | - api_get_path(SYS_PATH).'home' => api_get_path(SYS_APP_PATH) . 'home' |
|
| 181 | + api_get_path(SYS_PATH).'home' => api_get_path(SYS_APP_PATH).'home' |
|
| 182 | 182 | ]; |
| 183 | 183 | |
| 184 | 184 | if ($debug) { |
@@ -199,7 +199,7 @@ discard block |
||
| 199 | 199 | $fs->remove($origin); |
| 200 | 200 | } catch (IOException $e) { |
| 201 | 201 | // If removing the directory doesn't work, just log an error and continue |
| 202 | - error_log('Could not move ' . $origin . ' to ' . $destination . '(' . $e->getMessage() . '). Please move it manually.'); |
|
| 202 | + error_log('Could not move '.$origin.' to '.$destination.'('.$e->getMessage().'). Please move it manually.'); |
|
| 203 | 203 | } |
| 204 | 204 | } |
| 205 | 205 | } |
@@ -246,5 +246,5 @@ discard block |
||
| 246 | 246 | @rrmdir(api_get_path(SYS_PATH).'archive'); |
| 247 | 247 | |
| 248 | 248 | } else { |
| 249 | - echo 'You are not allowed here !'. __FILE__; |
|
| 249 | + echo 'You are not allowed here !'.__FILE__; |
|
| 250 | 250 | } |