Bring back BB_CFG_LOADED

This commit is contained in:
Roman Kelesidis 2023-08-21 12:51:13 +07:00
parent cc9108e3f6
commit 5f49dd4ba1
2 changed files with 3 additions and 0 deletions

View File

@ -578,3 +578,5 @@ $bb_cfg['nofollow'] = array(
'disabled' => false, 'disabled' => false,
'allowed_url' => array($domain_name), // 'allowed.site', 'www.allowed.site' 'allowed_url' => array($domain_name), // 'allowed.site', 'www.allowed.site'
); );
define('BB_CFG_LOADED', true);

View File

@ -2,6 +2,7 @@
if (!defined('BB_ROOT')) die(basename(__FILE__)); if (!defined('BB_ROOT')) die(basename(__FILE__));
if (!(PHP_VERSION_ID >= 50303)) die('TorrentPier II requires PHP version 5.3.3+. Your PHP version '. PHP_VERSION); if (!(PHP_VERSION_ID >= 50303)) die('TorrentPier II requires PHP version 5.3.3+. Your PHP version '. PHP_VERSION);
if (!defined('BB_CFG_LOADED')) trigger_error('File config.php not loaded', E_USER_ERROR);
// Define some basic configuration arrays // Define some basic configuration arrays
unset($stopwords, $synonyms_match, $synonyms_replace); unset($stopwords, $synonyms_match, $synonyms_replace);