diff --git a/common.php b/common.php index 2752d03f..1b39cee3 100644 --- a/common.php +++ b/common.php @@ -20,26 +20,14 @@ header('X-Frame-Options: SAMEORIGIN'); header('X-Powered-By: TorrentPier LTS'); // Cloudflare -if (isset($_SERVER['HTTP_CF_CONNECTING_IP'])) -{ - $_SERVER['REMOTE_ADDR'] = $_SERVER['HTTP_CF_CONNECTING_IP']; -} +if (isset($_SERVER['HTTP_CF_CONNECTING_IP'])) $_SERVER['REMOTE_ADDR'] = $_SERVER['HTTP_CF_CONNECTING_IP']; // Get initial config -if (file_exists(BB_ROOT . 'library/config.local.php')) -{ - require(BB_ROOT . 'library/config.local.php'); -} -else -{ - require(BB_ROOT . 'library/config.php'); -} +if (file_exists(BB_ROOT . 'library/config.local.php')) require(BB_ROOT . 'library/config.local.php'); +else require(BB_ROOT . 'library/config.php'); // Get mods config -if (file_exists(BB_ROOT . 'library/config.mods.php')) -{ - require(BB_ROOT . 'library/config.mods.php'); -} +if (file_exists(BB_ROOT . 'library/config.mods.php')) require(BB_ROOT . 'library/config.mods.php'); // Load Zend Framework use Zend\Loader\StandardAutoloader; diff --git a/modcp.php b/modcp.php index 4e66804a..f35d3f9d 100644 --- a/modcp.php +++ b/modcp.php @@ -565,8 +565,8 @@ switch ($mode) sync('forum', array($forum_id, $new_forum_id)); //bot - $message = $lang['TOPIC_SPLIT'] .'

'. $lang['TOPIC_SPLIT_OLD'] .''; - $message .= '  ::  '. $lang['TOPIC_SPLIT_NEW'] .''; + $message = $lang['TOPIC_SPLIT'] .'

'. $lang['TOPIC_SPLIT_OLD'] .''; + $message .= '  ::  '. $lang['TOPIC_SPLIT_NEW'] .''; // Log action $log_action->mod('mod_topic_split', array(