You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: include/smarty_globals.inc.php
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -224,6 +224,10 @@
224
224
if ($setting->getValue('website_theme') == "mpos")
225
225
$_SESSION['POPUP'][] = array('CONTENT' => 'You are using an old Theme that will not be maintained in the future.', 'TYPE' => 'alert alert-warning');
226
226
227
+
// Check we can load the theme at all
228
+
if ( !in_array($setting->getValue('website_theme'), $template->getThemes()))
229
+
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.');
0 commit comments