@@ -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 . '"'; |