aboutsummaryrefslogtreecommitdiff
path: root/mod/file
diff options
context:
space:
mode:
Diffstat (limited to 'mod/file')
-rw-r--r--mod/file/start.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/mod/file/start.php b/mod/file/start.php
index b8a26fab5..a257a90ac 100644
--- a/mod/file/start.php
+++ b/mod/file/start.php
@@ -79,6 +79,13 @@
add_submenu_item(sprintf(elgg_echo("file:group"),$page_owner->name), $CONFIG->wwwroot . "pg/file/" . $page_owner->username);
}
}
+
+ if ($page_owner instanceof ElggEntity) {
+ elgg_add_submenu_item(array(
+ 'text' => elgg_echo('file'),
+ 'href' => "{$CONFIG->url}pg/file/{$page_owner->username}",
+ ));
+ }
}
/**