Permalink
Browse files

[FIX] Default to bootstrap theme if none added to DB

  • Loading branch information...
TheSerapher committed Jul 18, 2017
1 parent 0387451 commit 6e65a48914298e39625e18a6e12dcf63b1c28ab9
Showing with 1 addition and 1 deletion.
  1. +1 −1 include/smarty_globals.inc.php
@@ -225,7 +225,7 @@
$_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()))
if ( !in_array($setting->getValue('website_theme', 'bootstrap'), $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

0 comments on commit 6e65a48

Please sign in to comment.