From 9e4cce719aafe736f784a3b7a886e5b5ba3c9ae8 Mon Sep 17 00:00:00 2001 From: Cash Costello Date: Sat, 28 Mar 2009 03:35:06 +0000 Subject: added a menu option to group album listing --- index.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/index.php b/index.php index 6b17e12e8..ac480b528 100644 --- a/index.php +++ b/index.php @@ -13,10 +13,19 @@ //if page owner cannot be found, forward to user's pictures instead (or world if not logged in) if (is_null($owner->username) || empty($owner->username)) { //if not logged in, see world pictures instead - if (!isloggedin()) forward('pg/photos/world'); + if (!isloggedin()) + forward('pg/photos/world'); + forward('pg/photos/owned/' . $_SESSION['user']->username); } + // setup group menu for album index + if ($owner instanceof ElggGroup) { + add_submenu_item( elgg_echo('album:create'), + $CONFIG->wwwroot . 'pg/photos/new/' . $owner->username, + 'tidypics'); + } + //set the title $title = sprintf(elgg_echo('album:user'), "$owner->name"); $area2 = elgg_view_title($title); -- cgit v1.2.3