Moved defined check to bootstrap

pull/624/head
TimZ99 2018-08-28 17:13:33 +02:00
parent 5b70457484
commit 66de8a1357
No known key found for this signature in database
GPG Key ID: 4D8268DC68E8339D
2 changed files with 7 additions and 7 deletions

View File

@ -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

View File

@ -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)
*/