From: Ian Denhardt Date: Tue, 21 Dec 2010 20:33:49 +0000 (-0500) Subject: Added a link to the user's photos on their profile page. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=23cf5c780d39634f0e6cc04e1d5addc7911a8dcd;p=quix0rs-gnu-social.git Added a link to the user's photos on their profile page. --- diff --git a/plugins/GNUsocialPhotos/GNUsocialPhotosPlugin.php b/plugins/GNUsocialPhotos/GNUsocialPhotosPlugin.php index eb25d90820..b6bf220e5a 100644 --- a/plugins/GNUsocialPhotos/GNUsocialPhotosPlugin.php +++ b/plugins/GNUsocialPhotos/GNUsocialPhotosPlugin.php @@ -78,7 +78,6 @@ class GNUsocialPhotosPlugin extends Plugin { $m->connect(':nickname/photos', array('action' => 'photos')); $m->connect('main/uploadphoto', array('action' => 'photoupload')); - common_log(LOG_INFO, "init'd!"); return true; } @@ -166,4 +165,12 @@ class GNUsocialPhotosPlugin extends Plugin } return true; } + + function onEndPersonalGroupNav($nav) + { + if($nav->action instanceof ShowstreamAction) { + $nav->out->menuItem(common_local_url('photos', + array('nickname' => $nav->action->trimmed('nickname'))), 'Photos'); + } + } }