Minor improvements (#218)

This commit is contained in:
Roman Kelesidis 2023-08-11 14:17:23 +07:00 committed by GitHub
parent 4d0a2692b7
commit e32b20464c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 11 deletions

View File

@ -6,7 +6,7 @@
**Merged pull requests:**
- Release v2.1.5-2023.08 🎉
- Minor improvements [\#215](https://github.com/torrentpier/torrentpier-lts/pull/215), [\#216](https://github.com/torrentpier/torrentpier-lts/pull/216), [\#217](https://github.com/torrentpier/torrentpier-lts/pull/217) ([belomaxorka](https://github.com/belomaxorka))
- Minor improvements [\#215](https://github.com/torrentpier/torrentpier-lts/pull/215), [\#216](https://github.com/torrentpier/torrentpier-lts/pull/216), [\#217](https://github.com/torrentpier/torrentpier-lts/pull/217), [\#218](https://github.com/torrentpier/torrentpier-lts/pull/218) ([belomaxorka](https://github.com/belomaxorka))
## [v2.1.5-2023.07](https://github.com/torrentpier/torrentpier-lts/tree/v2.1.5-2023.07) (2023-08-04)
[Full Changelog](https://github.com/torrentpier/torrentpier-lts/compare/v2.1.5-2023.06...v2.1.5-2023.07)

View File

@ -26,7 +26,13 @@ if (isset($_SERVER['HTTP_CF_CONNECTING_IP']))
}
// Get initial config
require(BB_ROOT . 'library/config.php');
require_once(BB_ROOT . 'library/config.php');
// Local config
if (is_file(BB_ROOT . '/library/config.local.php'))
{
require_once(BB_ROOT . '/library/config.local.php');
}
// Load Zend Framework
use Zend\Loader\StandardAutoloader;

View File

@ -578,11 +578,3 @@ $bb_cfg['nofollow'] = array(
'disabled' => false,
'allowed_url' => array($domain_name), // 'allowed.site', 'www.allowed.site'
);
// Local config
if (file_exists(BB_ROOT. '/library/config.local.php'))
{
include_once(BB_ROOT. '/library/config.local.php');
}
define('BB_CFG_LOADED', true);

View File

@ -2,7 +2,6 @@
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 (!defined('BB_CFG_LOADED')) trigger_error('File config.php not loaded', E_USER_ERROR);
// Define some basic configuration arrays
unset($stopwords, $synonyms_match, $synonyms_replace);