@@ -149,13 +149,11 @@ discard block |
||
149 | 149 | { |
150 | 150 | $return[] = '<link rel="preload" type="text/css" href="'.lib_css_url($style).'" as="style"> |
151 | 151 | <link rel="stylesheet" type="text/css" href="'.lib_css_url($style).'" />'; |
152 | - } |
|
153 | - else if (is_localfile($style)) |
|
152 | + } else if (is_localfile($style)) |
|
154 | 153 | { |
155 | 154 | $return[] = "<!-- The specified file do not exist. we can not load it. \n\t"; |
156 | 155 | $return[] = '<link rel="stylesheet" type="text/css" href="'.lib_css_url($style).'" /> -->'; |
157 | - } |
|
158 | - else |
|
156 | + } else |
|
159 | 157 | { |
160 | 158 | $return[] = '<link rel="preload" type="text/css" href="'.lib_css_url($style).'" as="style"> |
161 | 159 | <link rel="stylesheet" type="text/css" href="'.lib_css_url($style).'" />'; |
@@ -200,13 +198,11 @@ discard block |
||
200 | 198 | if (is_file(WEBROOT.'lib'.DS.str_replace('/', DS, $script))) |
201 | 199 | { |
202 | 200 | $return[] = '<script type="text/javascript" src="'.lib_js_url($script).'"></script>'; |
203 | - } |
|
204 | - else if (is_localfile($script)) |
|
201 | + } else if (is_localfile($script)) |
|
205 | 202 | { |
206 | 203 | $return[] = "<!-- The specified file do not exist. we can not load it. \n\t"; |
207 | 204 | $return[] = '<script type="text/javascript" src="'.lib_js_url($script).'"></script> -->'; |
208 | - } |
|
209 | - else |
|
205 | + } else |
|
210 | 206 | { |
211 | 207 | $return[] = '<script type="text/javascript" src="'.lib_js_url($script).'"></script>'; |
212 | 208 | } |
@@ -251,13 +247,11 @@ discard block |
||
251 | 247 | { |
252 | 248 | $return[] = '<link rel="preload" type="text/css" href="'.css_url($style).'" as="style"> |
253 | 249 | <link rel="stylesheet" type="text/css" href="'.css_url($style).'" />'; |
254 | - } |
|
255 | - else if (is_localfile($style)) |
|
250 | + } else if (is_localfile($style)) |
|
256 | 251 | { |
257 | 252 | $return[] = "<!-- The specified file do not exist. we can not load it. \n\t"; |
258 | 253 | $return[] = '<link rel="stylesheet" type="text/css" href="'.css_url($style).'" /> -->'; |
259 | - } |
|
260 | - else |
|
254 | + } else |
|
261 | 255 | { |
262 | 256 | $return[] = '<link rel="preload" type="text/css" href="'.css_url($style).'" as="style"> |
263 | 257 | <link rel="stylesheet" type="text/css" href="'.css_url($style).'" />'; |
@@ -302,13 +296,11 @@ discard block |
||
302 | 296 | if (is_file(WEBROOT.'js'.DS.str_replace('/', DS, $script))) |
303 | 297 | { |
304 | 298 | $return[] = '<script type="text/javascript" src="'.js_url($script).'"></script>'; |
305 | - } |
|
306 | - else if (is_localfile($script)) |
|
299 | + } else if (is_localfile($script)) |
|
307 | 300 | { |
308 | 301 | $return[] = "<!-- The specified file do not exist. we can not load it. \n\t"; |
309 | 302 | $return[] = '<script type="text/javascript" src="'.js_url($script).'"></script> -->'; |
310 | - } |
|
311 | - else |
|
303 | + } else |
|
312 | 304 | { |
313 | 305 | $return[] = '<script type="text/javascript" src="'.js_url($script).'"></script>'; |
314 | 306 | } |
@@ -381,13 +373,11 @@ discard block |
||
381 | 373 | if (is_file(WEBROOT.'less'.DS.str_replace('/', DS, $style))) |
382 | 374 | { |
383 | 375 | $return[] = '<link rel="stylesheet" type="text/less" href="'.less_url($style).'" />'; |
384 | - } |
|
385 | - else if (is_localfile($style)) |
|
376 | + } else if (is_localfile($style)) |
|
386 | 377 | { |
387 | 378 | $return[] = "<!-- The specified file do not exist. we can not load it. \n\t"; |
388 | 379 | $return[] = '<link rel="stylesheet" type="text/less" href="'.less_url($style).'" /> -->'; |
389 | - } |
|
390 | - else |
|
380 | + } else |
|
391 | 381 | { |
392 | 382 | $return[] = '<link rel="stylesheet" type="text/less" href="'.less_url($style).'" />'; |
393 | 383 | } |
@@ -13,12 +13,10 @@ discard block |
||
13 | 13 | if (is_dir($paths['app'])) { |
14 | 14 | if (($_temp = realpath($paths['app'])) !== false) { |
15 | 15 | $paths['app'] = $_temp; |
16 | - } |
|
17 | - else { |
|
16 | + } else { |
|
18 | 17 | $paths['app'] = strtr(rtrim($paths['app'], '/\\'), '/\\', DS.DS); |
19 | 18 | } |
20 | - } |
|
21 | - else { |
|
19 | + } else { |
|
22 | 20 | header('HTTP/1.1 503 Service Unavailable.', true, 503); |
23 | 21 | echo 'Your application folder path does not appear to be set correctly. '; |
24 | 22 | echo 'Please open the following file and correct this: "' . $paths_config_file . '"'; |
@@ -29,15 +27,12 @@ discard block |
||
29 | 27 | if (is_dir($paths['storage'])) { |
30 | 28 | if (($_temp = realpath($paths['storage'])) !== false) { |
31 | 29 | $paths['storage'] = $_temp; |
32 | - } |
|
33 | - else { |
|
30 | + } else { |
|
34 | 31 | $paths['storage'] = strtr(rtrim($paths['storage'], '/\\'), '/\\', DS.DS); |
35 | 32 | } |
36 | - } |
|
37 | - elseif (is_dir($paths['app'].$paths['storage'].DS)) { |
|
33 | + } elseif (is_dir($paths['app'].$paths['storage'].DS)) { |
|
38 | 34 | $paths['storage'] = $paths['app'].strtr(trim($paths['storage'], '/\\'), '/\\', DS.DS); |
39 | - } |
|
40 | - else { |
|
35 | + } else { |
|
41 | 36 | header('HTTP/1.1 503 Service Unavailable.', true, 503); |
42 | 37 | echo 'Your storage folder path does not appear to be set correctly. '; |
43 | 38 | echo 'Please open the following file and correct this: "' . $paths_config_file . '"'; |