summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2009-01-23 08:15:29 +0100
committerEvan Prodromou <evan@controlyourself.ca>2009-01-23 08:15:29 +0100
commit50ec1cc26ec1c27a2d80dcab27214aa6e7a6416f (patch)
tree8dd045d0ee9a547f708718b56f1d323459f077c4 /lib
parentda5c5499b8ebe2e0089fbc4080d26556f0bb11b4 (diff)
Upload logos for groups
Diffstat (limited to 'lib')
-rw-r--r--lib/groupnav.php6
-rw-r--r--lib/util.php2
2 files changed, 8 insertions, 0 deletions
diff --git a/lib/groupnav.php b/lib/groupnav.php
index 32803fd42..90bdc1014 100644
--- a/lib/groupnav.php
+++ b/lib/groupnav.php
@@ -101,6 +101,12 @@ class GroupNav extends Widget
sprintf(_('Edit %s group properties'), $nickname),
$action_name == 'editgroup',
'nav_group_admin');
+ $this->out->menuItem(common_local_url('grouplogo', array('nickname' =>
+ $nickname)),
+ _('Logo'),
+ sprintf(_('Add or edit %s logo'), $nickname),
+ $action_name == 'grouplogo',
+ 'nav_group_logo');
}
$this->out->elementEnd('ul');
}
diff --git a/lib/util.php b/lib/util.php
index 0b5abfa48..03d6b6199 100644
--- a/lib/util.php
+++ b/lib/util.php
@@ -898,6 +898,8 @@ function common_fancy_url($action, $args=null)
return common_path('group/'.$args['nickname'].'/rss');
case 'groupmembers':
return common_path('group/'.$args['nickname'].'/members');
+ case 'grouplogo':
+ return common_path('group/'.$args['nickname'].'/logo');
case 'usergroups':
return common_path($args['nickname'].'/groups');
case 'groups':