aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/elgglib.php
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-05-05 16:16:37 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-05-05 16:16:37 +0000
commit11018af9a4afab5faa0994454191e80519f93c5a (patch)
tree01056e847946c385539f165c79223ec810b256bd /engine/lib/elgglib.php
parentfe427c3ad26b37746005535d58b743c37758f806 (diff)
downloadelgg-11018af9a4afab5faa0994454191e80519f93c5a.tar.gz
elgg-11018af9a4afab5faa0994454191e80519f93c5a.tar.bz2
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
Diffstat (limited to 'engine/lib/elgglib.php')
-rw-r--r--engine/lib/elgglib.php5
1 files changed, 5 insertions, 0 deletions
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;
}