aboutsummaryrefslogtreecommitdiff
path: root/mod/profile/views
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-08-31 00:35:53 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-08-31 00:35:53 +0000
commitf5aa7f117267f2366813f0798c263989c34ad3ea (patch)
tree1f2160d86f6b1aac67ed9bc9696230ab05ae6794 /mod/profile/views
parent2f376bfc5fa1e6c7f52a1eb0079409f27ed9b0cd (diff)
downloadelgg-f5aa7f117267f2366813f0798c263989c34ad3ea.tar.gz
elgg-f5aa7f117267f2366813f0798c263989c34ad3ea.tar.bz2
Refs #2434 - make view failures spectacular rather than silent since they should only happen during development
git-svn-id: http://code.elgg.org/elgg/trunk@6886 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/profile/views')
-rwxr-xr-xmod/profile/views/default/profile/profile_navigation.php1
-rwxr-xr-xmod/profile/views/default/profile/profile_ownerblock.php9
2 files changed, 6 insertions, 4 deletions
diff --git a/mod/profile/views/default/profile/profile_navigation.php b/mod/profile/views/default/profile/profile_navigation.php
index 6750b9c67..b441b949f 100755
--- a/mod/profile/views/default/profile/profile_navigation.php
+++ b/mod/profile/views/default/profile/profile_navigation.php
@@ -8,6 +8,7 @@ if (isset($vars['section'])) {
$user = $vars['entity'];
if (!$user) {
// no user so no profile
+ echo sprintf(elgg_echo('viewfailure'), __FILE__);
return TRUE;
}
diff --git a/mod/profile/views/default/profile/profile_ownerblock.php b/mod/profile/views/default/profile/profile_ownerblock.php
index c36e22076..cfbd62657 100755
--- a/mod/profile/views/default/profile/profile_ownerblock.php
+++ b/mod/profile/views/default/profile/profile_ownerblock.php
@@ -13,10 +13,11 @@ if ($vars['entity']) {
}
} else {
$user = page_owner_entity();
- if (!$user) {
- // no user so we quit
- return TRUE;
- }
+}
+if ($user) {
+ // no user so we quit view
+ echo sprintf(elgg_echo('viewfailure'), __FILE__);
+ return TRUE;
}
$more_info = '';