improve conditional
This commit is contained in:
parent
4282a976a6
commit
8bbb896740
1 changed files with 1 additions and 1 deletions
|
@ -80,7 +80,7 @@
|
||||||
<?php
|
<?php
|
||||||
if (Sanitize::pathFile(PATH_ADMIN_VIEWS, $layout['view'].'.php')) {
|
if (Sanitize::pathFile(PATH_ADMIN_VIEWS, $layout['view'].'.php')) {
|
||||||
include(PATH_ADMIN_VIEWS.$layout['view'].'.php');
|
include(PATH_ADMIN_VIEWS.$layout['view'].'.php');
|
||||||
} else if (!empty($layout['plugin']) && method_exists($layout['plugin'], 'adminView')) {
|
} elseif ($layout['plugin'] && method_exists($layout['plugin'], 'adminView')) {
|
||||||
echo $layout['plugin']->adminView();
|
echo $layout['plugin']->adminView();
|
||||||
} else {
|
} else {
|
||||||
echo '<h1 class="text-center">'.$L->g('Page not found').'</h1>';
|
echo '<h1 class="text-center">'.$L->g('Page not found').'</h1>';
|
||||||
|
|
Loading…
Reference in a new issue