summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathan Haug2006-07-05 06:37:15 (GMT)
committer Nathan Haug2006-07-05 06:37:15 (GMT)
commitd66d7feb3508a2e55e9e355ce2de25b397cf4e2a (patch)
treea76e004a5cc44ac9b4c2337f69689387b892d580
parent4812e1a37dc9b94eb69afb520cdaea9ec194e31f (diff)
Changed 'buddies of' to proper 'buddy of'. Issue #64709. Thanks stephthegeek.
-rw-r--r--buddylist.module10
1 files changed, 5 insertions, 5 deletions
diff --git a/buddylist.module b/buddylist.module
index dd5ac44..9454e6a 100644
--- a/buddylist.module
+++ b/buddylist.module
@@ -10,7 +10,7 @@ function buddylist_translation() {
'%buddylist' => t('buddylist'),
'%buddies' => t('buddies'),
'%Buddies' => t('Buddies'),
- '%buddiesof' => t('buddies of'),
+ '%buddyof' => t('buddy of'),
'%Buddylist' => t('Buddylist'),
);
}
@@ -66,7 +66,7 @@ function buddylist_menu($may_cache) {
elseif ($id == $user->uid || user_access('administer users')) {
//tabs
$links[] = array('path' => 'buddylist/'. $id .'/buddies', 'title' => t('%buddies', buddylist_translation()), 'access' => user_access('view buddy lists'), 'callback' => 'buddylist_buddylisting_page', 'type' => MENU_DEFAULT_LOCAL_TASK, 'weight' => -1, 'callback arguments' => array($id));
- $links[] = array('path' => 'buddylist/'. $id .'/buddiesof', 'title' => t('%buddiesof', buddylist_translation()), 'access' => user_access('view buddy lists'), 'callback' => 'buddylist_buddylisting_page','type' => MENU_LOCAL_TASK, 'weight' => 1, 'callback arguments' => array($id, 'buddiesof'));
+ $links[] = array('path' => 'buddylist/'. $id .'/buddyof', 'title' => t('%buddyof', buddylist_translation()), 'access' => user_access('view buddy lists'), 'callback' => 'buddylist_buddylisting_page','type' => MENU_LOCAL_TASK, 'weight' => 1, 'callback arguments' => array($id, 'buddyof'));
// subtabs
$links[] = array('path' => 'buddylist/'. $id .'/buddies/list', 'title' => t('list'), 'access' => user_access('view buddy lists'), 'callback' => 'buddylist_buddylisting_page', 'type' => MENU_DEFAULT_LOCAL_TASK, 'weight' => -1, 'callback arguments' => array($id));
$links[] = array('path' => 'buddylist/'. $id .'/buddies/recent', 'title' => t('recent posts'), 'access' => (user_access('view buddy lists') && module_exist('tracker')), 'callback' => 'buddylist_buddiesrecent_page', 'type' => MENU_LOCAL_TASK, 'weight' => 1, 'callback arguments' => array($id));
@@ -172,10 +172,10 @@ function buddylist_user($type, &$edit, &$thisuser, $category = NULL) {
$sql = 'SELECT b.uid, u.name FROM {buddylist} b INNER JOIN {users} u ON b.uid = u.uid WHERE b.buddy = %d ORDER BY u.access DESC';
$result = db_query_range($sql, $thisuser->uid, 0, $cnt);
while ($row = db_fetch_object($result)) {
- $listbuddiesof[$row->uid] = $row;
+ $listbuddyof[$row->uid] = $row;
}
- if ($listbuddiesof) {
- $output[] = array('title' => t('%Buddy of', buddylist_translation()), 'value' => theme('user_list', $listbuddiesof));
+ if ($listbuddyof) {
+ $output[] = array('title' => t('%Buddy of', buddylist_translation()), 'value' => theme('user_list', $listbuddyof));
}
// Check to see whether or not $thisuser is in global $user's buddy list