From 23cf5c780d39634f0e6cc04e1d5addc7911a8dcd Mon Sep 17 00:00:00 2001 From: Ian Denhardt Date: Tue, 21 Dec 2010 15:33:49 -0500 Subject: [PATCH] Added a link to the user's photos on their profile page. --- plugins/GNUsocialPhotos/GNUsocialPhotosPlugin.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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'); + } + } } -- 2.39.2