Permalink
Browse files

Add missing class references

  • Loading branch information...
1 parent 394a367 commit 9850484fa3f08195ff193619d60292a9acc8b7d5 @marc1706 marc1706 committed Feb 1, 2012
Showing with 13 additions and 3 deletions.
  1. +1 −1 root/portal/modules/portal_friends.php
  2. +12 −2 root/portal/modules/portal_poll.php
@@ -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;
@@ -57,8 +57,13 @@ public function get_template_center($module_id)
{
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 @@ public function get_template_side($module_id)
{
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);

0 comments on commit 9850484

Please sign in to comment.