aboutsummaryrefslogtreecommitdiff
path: root/engine/lib
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2011-07-10 07:42:52 -0400
committerCash Costello <cash.costello@gmail.com>2011-07-10 07:42:52 -0400
commitc5ab33dfbd4379cd5971a583fcde65246b47a013 (patch)
tree26e8c86ebed23182eb48da27a2789a3ff07c1ce3 /engine/lib
parent8944c5c187473c4c073cc919e7cd406c03eb7068 (diff)
downloadelgg-c5ab33dfbd4379cd5971a583fcde65246b47a013.tar.gz
elgg-c5ab33dfbd4379cd5971a583fcde65246b47a013.tar.bz2
Fixes #3336 functions that used elgg_view_exists() were not falling back to the default views
Diffstat (limited to 'engine/lib')
-rw-r--r--engine/lib/views.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/engine/lib/views.php b/engine/lib/views.php
index dde298c2b..04f4b7c2a 100644
--- a/engine/lib/views.php
+++ b/engine/lib/views.php
@@ -309,6 +309,11 @@ function elgg_view_exists($view, $viewtype = '', $recurse = true) {
}
}
+ // Now check if the default view exists if the view is registered as a fallback
+ if ($viewtype != 'default' && elgg_does_viewtype_fallback($viewtype)) {
+ return elgg_view_exists($view, 'default');
+ }
+
return false;
}