Added a link to the user's photos on their profile page.

This commit is contained in:
Ian Denhardt 2010-12-21 15:33:49 -05:00
parent 012ccc2dcb
commit 23cf5c780d

View File

@ -78,7 +78,6 @@ class GNUsocialPhotosPlugin extends Plugin
{ {
$m->connect(':nickname/photos', array('action' => 'photos')); $m->connect(':nickname/photos', array('action' => 'photos'));
$m->connect('main/uploadphoto', array('action' => 'photoupload')); $m->connect('main/uploadphoto', array('action' => 'photoupload'));
common_log(LOG_INFO, "init'd!");
return true; return true;
} }
@ -166,4 +165,12 @@ class GNUsocialPhotosPlugin extends Plugin
} }
return true; return true;
} }
function onEndPersonalGroupNav($nav)
{
if($nav->action instanceof ShowstreamAction) {
$nav->out->menuItem(common_local_url('photos',
array('nickname' => $nav->action->trimmed('nickname'))), 'Photos');
}
}
} }