From c5ab33dfbd4379cd5971a583fcde65246b47a013 Mon Sep 17 00:00:00 2001 From: Cash Costello Date: Sun, 10 Jul 2011 07:42:52 -0400 Subject: Fixes #3336 functions that used elgg_view_exists() were not falling back to the default views --- engine/lib/views.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'engine') 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; } -- cgit v1.2.3