@@ -210,8 +210,7 @@ discard block |
||
| 210 | 210 | if($moduleViewPath){ |
| 211 | 211 | $path = $moduleViewPath; |
| 212 | 212 | $logger->info('Found view [' . $view . '] in module [' .$module. '], the file path is [' .$moduleViewPath. '] we will used it'); |
| 213 | - } |
|
| 214 | - else{ |
|
| 213 | + } else{ |
|
| 215 | 214 | $logger->info('Cannot find view [' . $view . '] in module [' .$module. '] using the default location'); |
| 216 | 215 | } |
| 217 | 216 | |
@@ -335,8 +334,7 @@ discard block |
||
| 335 | 334 | $output = ob_get_clean(); |
| 336 | 335 | self::sendHeaders(404); |
| 337 | 336 | echo $output; |
| 338 | - } |
|
| 339 | - else{ |
|
| 337 | + } else{ |
|
| 340 | 338 | show_error('The 404 view [' .$path. '] does not exist'); |
| 341 | 339 | } |
| 342 | 340 | } |
@@ -359,8 +357,7 @@ discard block |
||
| 359 | 357 | $output = ob_get_clean(); |
| 360 | 358 | self::sendHeaders(503); |
| 361 | 359 | echo $output; |
| 362 | - } |
|
| 363 | - else{ |
|
| 360 | + } else{ |
|
| 364 | 361 | //can't use show_error() at this time because some dependencies not yet loaded and to prevent loop |
| 365 | 362 | set_http_status_header(503); |
| 366 | 363 | echo 'The error view [' . $path . '] does not exist'; |