Merge pull request #50 from marc1706/master
Add missing class references
This commit is contained in:
@@ -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;
|
||||||
|
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user