aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/plugins.php
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-03-11 17:18:49 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-03-11 17:18:49 +0000
commit714ccd2989c219b592460d80b0a455baca1a5fd1 (patch)
tree128f5769c06418c80a29a54dce3ec0c10f2a47d3 /engine/lib/plugins.php
parent517d262f59179cd29036b4280a6c5ed5c3a87f33 (diff)
downloadelgg-714ccd2989c219b592460d80b0a455baca1a5fd1.tar.gz
elgg-714ccd2989c219b592460d80b0a455baca1a5fd1.tar.bz2
God bless 'em! Plugins now autoregister their own views.
git-svn-id: https://code.elgg.org/elgg/trunk@168 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/plugins.php')
-rw-r--r--engine/lib/plugins.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/engine/lib/plugins.php b/engine/lib/plugins.php
index 34be9b7cf..92294faea 100644
--- a/engine/lib/plugins.php
+++ b/engine/lib/plugins.php
@@ -28,6 +28,9 @@
if (!in_array($mod,array('.','..','.svn','CVS')) && is_dir($CONFIG->pluginspath . "/" . $mod)) {
if (!@include($CONFIG->pluginspath . $mod . "/start.php"))
throw new PluginException("{$mod} is a misconfigured plugin.");
+ if (is_dir($CONFIG->pluginspath . $mod . "/views/default")) {
+ autoregister_views($mod,$CONFIG->pluginspath . $mod . "/views/default",$CONFIG->pluginspath . $mod . "/views");
+ }
}
}
}