aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/faq.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2009-02-22 15:29:18 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2009-02-22 15:29:18 +0000
commit794c5749696c9fa2595ed3a1d7c836a0d984e11c (patch)
tree37aab2f0f965ddcaeb1d26af753095f59a6e025c /phpBB/faq.php
parent7aced345c5a2871f6eddfe316297b4ff9a0ebb76 (diff)
downloadforums-794c5749696c9fa2595ed3a1d7c836a0d984e11c.tar
forums-794c5749696c9fa2595ed3a1d7c836a0d984e11c.tar.gz
forums-794c5749696c9fa2595ed3a1d7c836a0d984e11c.tar.bz2
forums-794c5749696c9fa2595ed3a1d7c836a0d984e11c.tar.xz
forums-794c5749696c9fa2595ed3a1d7c836a0d984e11c.zip
remove global and change $user-> to phpbb::$user->
git-svn-id: file:///svn/phpbb/trunk@9334 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/faq.php')
-rw-r--r--phpBB/faq.php18
1 files changed, 9 insertions, 9 deletions
diff --git a/phpBB/faq.php b/phpBB/faq.php
index f8d1f1d459..9810f7a2fa 100644
--- a/phpBB/faq.php
+++ b/phpBB/faq.php
@@ -17,9 +17,9 @@ if (!defined('PHP_EXT')) define('PHP_EXT', substr(strrchr(__FILE__, '.'), 1));
include(PHPBB_ROOT_PATH . 'common.' . PHP_EXT);
// Start session management
-$user->session_begin();
-$auth->acl($user->data);
-$user->setup();
+phpbb::$user->session_begin();
+$auth->acl(phpbb::$user->data);
+phpbb::$user->setup();
$mode = request_var('mode', '');
@@ -27,19 +27,19 @@ $mode = request_var('mode', '');
switch ($mode)
{
case 'bbcode':
- $l_title = $user->lang['BBCODE_GUIDE'];
- $user->add_lang('bbcode', false, true);
+ $l_title = phpbb::$user->lang['BBCODE_GUIDE'];
+ phpbb::$user->add_lang('bbcode', false, true);
break;
default:
- $l_title = $user->lang['FAQ_EXPLAIN'];
- $user->add_lang('faq', false, true);
+ $l_title = phpbb::$user->lang['FAQ_EXPLAIN'];
+ phpbb::$user->add_lang('faq', false, true);
break;
}
// Pull the array data from the lang pack
$help_blocks = array();
-foreach ($user->help as $help_ary)
+foreach (phpbb::$user->help as $help_ary)
{
if ($help_ary[0] == '--')
{
@@ -59,7 +59,7 @@ foreach ($user->help as $help_ary)
// Lets build a page ...
$template->assign_vars(array(
'L_FAQ_TITLE' => $l_title,
- 'L_BACK_TO_TOP' => $user->lang['BACK_TO_TOP'])
+ 'L_BACK_TO_TOP' => phpbb::$user->lang['BACK_TO_TOP'])
);
page_header($l_title);