From 11018af9a4afab5faa0994454191e80519f93c5a Mon Sep 17 00:00:00 2001 From: marcus Date: Tue, 5 May 2009 16:16:37 +0000 Subject: Closes #994: elgg_view_exists will now check to see if a view exists by dint of being extended. git-svn-id: https://code.elgg.org/elgg/trunk@3264 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/elgglib.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'engine/lib/elgglib.php') diff --git a/engine/lib/elgglib.php b/engine/lib/elgglib.php index 2db75b6f7..b80bd9f70 100644 --- a/engine/lib/elgglib.php +++ b/engine/lib/elgglib.php @@ -299,6 +299,11 @@ return true; } + // If we got here then check whether this exists as an extension + // Note that this currently does not recursively check whether the extended view exists also + if (isset($CONFIG->views->extensions[$view])) + return true; + return false; } -- cgit v1.2.3