aboutsummaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2009-03-28 03:35:06 +0000
committerCash Costello <cash.costello@gmail.com>2009-03-28 03:35:06 +0000
commit9e4cce719aafe736f784a3b7a886e5b5ba3c9ae8 (patch)
treeb752213a0ae13656cd88542984a328184fe07160 /index.php
parent5107faa7e96efd940ce28da9f46508298759c189 (diff)
downloadelgg-9e4cce719aafe736f784a3b7a886e5b5ba3c9ae8.tar.gz
elgg-9e4cce719aafe736f784a3b7a886e5b5ba3c9ae8.tar.bz2
added a menu option to group album listing
Diffstat (limited to 'index.php')
-rw-r--r--index.php11
1 files changed, 10 insertions, 1 deletions
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);