summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2010-02-25 11:27:21 -0800
committerBrion Vibber <brion@pobox.com>2010-02-25 11:27:21 -0800
commitfb8b8615b0140b97f3f7dd5ebdc8f70304f792f7 (patch)
tree17facea49f5eb769b1efde12fe48ba1a30e3ffc3 /classes
parent79c0d52daa92b60e8eed80fa9459367c26f97122 (diff)
parent5ea01435c1c4d0f3c4d7de5ee024b1365c8a2ace (diff)
Merge branch 'testing' of gitorious.org:statusnet/mainline into testing
Diffstat (limited to 'classes')
-rw-r--r--classes/User_group.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/classes/User_group.php b/classes/User_group.php
index 0592c56f8..f24bef764 100644
--- a/classes/User_group.php
+++ b/classes/User_group.php
@@ -55,6 +55,21 @@ class User_group extends Memcached_DataObject
return $url;
}
+ function getUri()
+ {
+ $uri = null;
+ if (Event::handle('StartUserGroupGetUri', array($this, &$uri))) {
+ if (!empty($this->uri)) {
+ $uri = $this->uri;
+ } else {
+ $uri = common_local_url('groupbyid',
+ array('id' => $this->id));
+ }
+ }
+ Event::handle('EndUserGroupGetUri', array($this, &$uri));
+ return $uri;
+ }
+
function permalink()
{
$url = null;