aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/mcp/mcp_notes.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2007-04-12 16:20:39 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2007-04-12 16:20:39 +0000
commitb63745fdb3b775d7505f38ed03a8bb39907a825c (patch)
tree3c2bc96535a30d66df3fdf6b3307be469d4362bd /phpBB/includes/mcp/mcp_notes.php
parentf0868d37dfd73df6c2dfd76362af6c09b6b49a5f (diff)
downloadforums-b63745fdb3b775d7505f38ed03a8bb39907a825c.tar
forums-b63745fdb3b775d7505f38ed03a8bb39907a825c.tar.gz
forums-b63745fdb3b775d7505f38ed03a8bb39907a825c.tar.bz2
forums-b63745fdb3b775d7505f38ed03a8bb39907a825c.tar.xz
forums-b63745fdb3b775d7505f38ed03a8bb39907a825c.zip
my take on getting the bugs down... thanks to those also providing (usable) solutions to the problem. ;) Of course also to those reporting generally...
git-svn-id: file:///svn/phpbb/trunk@7330 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/mcp/mcp_notes.php')
-rwxr-xr-xphpBB/includes/mcp/mcp_notes.php24
1 files changed, 5 insertions, 19 deletions
diff --git a/phpBB/includes/mcp/mcp_notes.php b/phpBB/includes/mcp/mcp_notes.php
index 1b3c36ac22..9d4b522fe4 100755
--- a/phpBB/includes/mcp/mcp_notes.php
+++ b/phpBB/includes/mcp/mcp_notes.php
@@ -141,28 +141,14 @@ class mcp_notes
}
// Generate the appropriate user information for the user we are looking at
- $rank_title = $rank_img = '';
-// get_user_rank($userrow['user_rank'], $userrow['user_posts'], $rank_title, $rank_img);
-
- $avatar_img = '';
-
- if (!empty($userrow['user_avatar']))
+ if (!function_exists('get_user_avatar'))
{
- switch ($userrow['user_avatar_type'])
- {
- case AVATAR_UPLOAD:
- $avatar_img = $config['avatar_path'] . '/';
- break;
-
- case AVATAR_GALLERY:
- $avatar_img = $config['avatar_gallery_path'] . '/';
- break;
- }
-
- $avatar_img .= $userrow['user_avatar'];
- $avatar_img = '<img src="' . $avatar_img . '" width="' . $userrow['user_avatar_width'] . '" height="' . $userrow['user_avatar_height'] . '" alt="" />';
+ include($phpbb_root_path . 'includes/functions_display.' . $phpEx);
}
+ $rank_title = $rank_img = '';
+ $avatar_img = get_user_avatar($userrow['user_avatar'], $userrow['user_avatar_type'], $userrow['user_avatar_width'], $userrow['user_avatar_height']);
+
$limit_days = array(0 => $user->lang['ALL_ENTRIES'], 1 => $user->lang['1_DAY'], 7 => $user->lang['7_DAYS'], 14 => $user->lang['2_WEEKS'], 30 => $user->lang['1_MONTH'], 90 => $user->lang['3_MONTHS'], 180 => $user->lang['6_MONTHS'], 365 => $user->lang['1_YEAR']);
$sort_by_text = array('a' => $user->lang['SORT_USERNAME'], 'b' => $user->lang['SORT_DATE'], 'c' => $user->lang['SORT_IP'], 'd' => $user->lang['SORT_ACTION']);
$sort_by_sql = array('a' => 'u.username_clean', 'b' => 'l.log_time', 'c' => 'l.log_ip', 'd' => 'l.log_operation');