diff options
Diffstat (limited to 'phpBB/faq.php')
-rw-r--r-- | phpBB/faq.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/phpBB/faq.php b/phpBB/faq.php index da064e4452..f8d1f1d459 100644 --- a/phpBB/faq.php +++ b/phpBB/faq.php @@ -12,9 +12,9 @@ * @ignore */ define('IN_PHPBB', true); -$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './'; -$phpEx = substr(strrchr(__FILE__, '.'), 1); -include($phpbb_root_path . 'common.' . $phpEx); +if (!defined('PHPBB_ROOT_PATH')) define('PHPBB_ROOT_PATH', './'); +if (!defined('PHP_EXT')) define('PHP_EXT', substr(strrchr(__FILE__, '.'), 1)); +include(PHPBB_ROOT_PATH . 'common.' . PHP_EXT); // Start session management $user->session_begin(); @@ -67,7 +67,7 @@ page_header($l_title); $template->set_filenames(array( 'body' => 'faq_body.html') ); -make_jumpbox(append_sid("{$phpbb_root_path}viewforum.$phpEx")); +make_jumpbox(append_sid('viewforum')); page_footer(); |