Add missing class references

This commit is contained in:
Marc Alexander
2012-02-01 21:43:18 +01:00
parent 394a3677c1
commit 9850484fa3
2 changed files with 13 additions and 3 deletions

View File

@@ -49,7 +49,7 @@ class portal_friends_module
public function get_template_side($module_id)
{
global $config, $template, $db, $user;
global $config, $template, $db, $user, $auth;
$s_display_friends = false;

View File

@@ -57,8 +57,13 @@ class portal_poll_module
{
global $config, $template, $db, $user, $auth, $phpbb_root_path, $phpEx;
$user->add_lang('viewtopic');
// check if we need to include the bbcode class
if(!class_exists('bbcode'))
{
include($phpbb_root_path . 'includes/bbcode.' . $phpEx);
}
$view = request_var('view', '');
$update = request_var('update', false);
@@ -433,8 +438,13 @@ class portal_poll_module
{
global $config, $template, $db, $user, $auth, $phpbb_root_path, $phpEx;
$user->add_lang('viewtopic');
// check if we need to include the bbcode class
if(!class_exists('bbcode'))
{
include($phpbb_root_path . 'includes/bbcode.' . $phpEx);
}
$view = request_var('view', '');
$update = request_var('update', false);