diff options
author | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-05-05 16:16:37 +0000 |
---|---|---|
committer | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-05-05 16:16:37 +0000 |
commit | 11018af9a4afab5faa0994454191e80519f93c5a (patch) | |
tree | 01056e847946c385539f165c79223ec810b256bd /engine/lib | |
parent | fe427c3ad26b37746005535d58b743c37758f806 (diff) | |
download | elgg-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')
-rw-r--r-- | engine/lib/elgglib.php | 5 |
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; } |