Removed unnecessary code

This commit is contained in:
Marc Alexander
2010-09-05 11:05:21 +00:00
parent 9aa25c8117
commit 8744d37ea5

View File

@@ -59,9 +59,7 @@ class portal_user_menu_module
function get_template_side($module_id)
{
global $config, $template, $user, $auth, $db, $phpEx;
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './../';
global $config, $template, $user, $auth, $db, $phpEx, $phpbb_root_path;
if (!function_exists('display_forums'))
{
@@ -73,8 +71,6 @@ class portal_user_menu_module
//
// + new posts since last visit & you post number
//
if ($user->data['is_registered'])
{
$ex_fid_ary = array_unique(array_merge(array_keys($auth->acl_getf('!f_read', true)), array_keys($auth->acl_getf('!f_search', true))));
if ($auth->acl_get('m_approve'))
@@ -110,10 +106,6 @@ class portal_user_menu_module
$unread_list = array();
$unread_list = get_unread_topics($user->data['user_id'], $sql_where, 'ORDER BY t.topic_id DESC');
$unread_posts_count = sizeof($unread_list);
}
//
// - new posts since last visit & you post number
//
// Get user avatar and rank