Completed
Push — 1.10.x ( d2b7b4...9c8927 )
by Angel Fernando Quiroz
45:09
created
main/install/update-files-1.9.0-1.10.0.inc.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 /**
Please login to merge, or discard this patch.