aboutsummaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
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);