From: Cash Costello Date: Sun, 10 Jul 2011 11:42:52 +0000 (-0400) Subject: Fixes #3336 functions that used elgg_view_exists() were not falling back to the defau... X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=c5ab33dfbd4379cd5971a583fcde65246b47a013;p=lorea%2Felgg.git Fixes #3336 functions that used elgg_view_exists() were not falling back to the default views --- 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; }