aboutsummaryrefslogtreecommitdiff
path: root/mod/file
diff options
context:
space:
mode:
authorcash <cash.costello@gmail.com>2011-10-10 20:25:20 -0400
committercash <cash.costello@gmail.com>2011-10-10 20:25:20 -0400
commitff75f99e734b6b99da77ba946e953f08a6e81a5b (patch)
tree2f4c2cd44b740e5657b6116ac2ced2b23d774947 /mod/file
parent1e4c47b736718ecb18a4367657e147e412fab06e (diff)
downloadelgg-ff75f99e734b6b99da77ba946e953f08a6e81a5b.tar.gz
elgg-ff75f99e734b6b99da77ba946e953f08a6e81a5b.tar.bz2
Refs #3916 added checks to all content plugins in master for page owner in mine and friends pages
Diffstat (limited to 'mod/file')
-rw-r--r--mod/file/pages/file/friends.php3
-rw-r--r--mod/file/pages/file/owner.php3
2 files changed, 6 insertions, 0 deletions
diff --git a/mod/file/pages/file/friends.php b/mod/file/pages/file/friends.php
index 0b351efaf..f504bdc1f 100644
--- a/mod/file/pages/file/friends.php
+++ b/mod/file/pages/file/friends.php
@@ -6,6 +6,9 @@
*/
$owner = elgg_get_page_owner_entity();
+if (!$owner) {
+ forward('file/all');
+}
elgg_push_breadcrumb(elgg_echo('file'), "file/all");
elgg_push_breadcrumb($owner->name, "file/owner/$owner->username");
diff --git a/mod/file/pages/file/owner.php b/mod/file/pages/file/owner.php
index 4e2ec89d4..fb87af1b2 100644
--- a/mod/file/pages/file/owner.php
+++ b/mod/file/pages/file/owner.php
@@ -9,6 +9,9 @@
group_gatekeeper();
$owner = elgg_get_page_owner_entity();
+if (!$owner) {
+ forward('file/all');
+}
elgg_push_breadcrumb(elgg_echo('file'), "file/all");
elgg_push_breadcrumb($owner->name);