Merge pull request #50 from marc1706/master

Add missing class references
This commit is contained in:
Marc Alexander
2012-02-01 12:50:36 -08:00
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) public function get_template_side($module_id)
{ {
global $config, $template, $db, $user; global $config, $template, $db, $user, $auth;
$s_display_friends = false; $s_display_friends = false;

View File

@@ -57,8 +57,13 @@ class portal_poll_module
{ {
global $config, $template, $db, $user, $auth, $phpbb_root_path, $phpEx; global $config, $template, $db, $user, $auth, $phpbb_root_path, $phpEx;
$user->add_lang('viewtopic'); $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', ''); $view = request_var('view', '');
$update = request_var('update', false); $update = request_var('update', false);
@@ -433,8 +438,13 @@ class portal_poll_module
{ {
global $config, $template, $db, $user, $auth, $phpbb_root_path, $phpEx; global $config, $template, $db, $user, $auth, $phpbb_root_path, $phpEx;
$user->add_lang('viewtopic'); $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', ''); $view = request_var('view', '');
$update = request_var('update', false); $update = request_var('update', false);