aboutsummaryrefslogtreecommitdiff
path: root/mod/thewire
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/thewire
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/thewire')
-rw-r--r--mod/thewire/pages/thewire/friends.php3
-rw-r--r--mod/thewire/pages/thewire/owner.php3
2 files changed, 6 insertions, 0 deletions
diff --git a/mod/thewire/pages/thewire/friends.php b/mod/thewire/pages/thewire/friends.php
index 265b73eab..26ad03da6 100644
--- a/mod/thewire/pages/thewire/friends.php
+++ b/mod/thewire/pages/thewire/friends.php
@@ -4,6 +4,9 @@
*/
$owner = elgg_get_page_owner_entity();
+if (!$owner) {
+ forward('thewire/all');
+}
$title = elgg_echo('thewire:friends');
diff --git a/mod/thewire/pages/thewire/owner.php b/mod/thewire/pages/thewire/owner.php
index b6449b217..a95786b0a 100644
--- a/mod/thewire/pages/thewire/owner.php
+++ b/mod/thewire/pages/thewire/owner.php
@@ -5,6 +5,9 @@
*/
$owner = elgg_get_page_owner_entity();
+if (!$owner) {
+ forward('thewire/all');
+}
$title = elgg_echo('thewire:user', array($owner->name));