Skip to content

Commit 6e65a48

Browse files
committed
[FIX] Default to bootstrap theme if none added to DB
1 parent 0387451 commit 6e65a48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/smarty_globals.inc.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@
225225
$_SESSION['POPUP'][] = array('CONTENT' => 'You are using an old Theme that will not be maintained in the future.', 'TYPE' => 'alert alert-warning');
226226

227227
// Check we can load the theme at all
228-
if ( !in_array($setting->getValue('website_theme'), $template->getThemes()))
228+
if ( !in_array($setting->getValue('website_theme', 'bootstrap'), $template->getThemes()))
229229
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.');
230230

231231
// So we can display additional info

0 commit comments

Comments
 (0)