[UPDATE] Catch missing theme folder from website_theme setting
This commit is contained in:
parent
4a67b5ca02
commit
073ff59b1a
@ -224,6 +224,10 @@ if ($motd = $setting->getValue('system_motd')) {
|
|||||||
if ($setting->getValue('website_theme') == "mpos")
|
if ($setting->getValue('website_theme') == "mpos")
|
||||||
$_SESSION['POPUP'][] = array('CONTENT' => 'You are using an old Theme that will not be maintained in the future.', 'TYPE' => 'alert alert-warning');
|
$_SESSION['POPUP'][] = array('CONTENT' => 'You are using an old Theme that will not be maintained in the future.', 'TYPE' => 'alert alert-warning');
|
||||||
|
|
||||||
|
// Check we can load the theme at all
|
||||||
|
if ( !in_array($setting->getValue('website_theme'), $template->getThemes()))
|
||||||
|
die('Unable to find your selected theme `' . $setting->getValue('website_theme') . '` in the list of available themes. Please reset your `website_theme` setting in your database.');
|
||||||
|
|
||||||
// So we can display additional info
|
// So we can display additional info
|
||||||
$smarty->assign('DEBUG', $config['DEBUG']);
|
$smarty->assign('DEBUG', $config['DEBUG']);
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user