From 66de8a13575f7222873058e489d7e5dc80e453e5 Mon Sep 17 00:00:00 2001 From: TimZ99 Date: Tue, 28 Aug 2018 17:13:33 +0200 Subject: [PATCH] Moved defined check to bootstrap --- src/bootstrap.php | 7 +++++++ src/includes/psmconfig.inc.php | 7 ------- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/bootstrap.php b/src/bootstrap.php index 146d42b0..7c72fa65 100755 --- a/src/bootstrap.php +++ b/src/bootstrap.php @@ -56,6 +56,13 @@ if (!defined('PSM_DEBUG')) { ini_set('display_errors', 1); PSM_DEBUG ? error_reporting(E_ALL) : error_reporting(E_USER_ERROR); +/** + * Default theme if none is selected + */ +if (!defined('PSM_THEME')) { + define('PSM_THEME', 'default'); +} + // check for a cron allowed ip array if (!defined('PSM_CRON_ALLOW')) { //serialize for php version lower than 7.0.0 diff --git a/src/includes/psmconfig.inc.php b/src/includes/psmconfig.inc.php index 0b87d7d2..b2ea44a0 100755 --- a/src/includes/psmconfig.inc.php +++ b/src/includes/psmconfig.inc.php @@ -118,13 +118,6 @@ define('PSM_TELEGRAM_GET_ID_URL', 'https://telegram.me/cid_bot'); */ //define('PSM_BASE_URL', null); -/** - * Default theme if none is selected - */ -if (!defined('PSM_THEME')) { - define('PSM_THEME', 'default'); -} - /** * Default module (if none given or invalid one) */