aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/plugins.php
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-02-15 13:46:08 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-02-15 13:46:08 +0000
commitc6f3234b15bdbd2de3dda10c9941b36ed147fb76 (patch)
tree601a29ca7fc5792feb68469b4fff80388d7eeec8 /engine/lib/plugins.php
parentd5b835cbf12253bdbb3ce2c89f97e921e06ad1f2 (diff)
downloadelgg-c6f3234b15bdbd2de3dda10c9941b36ed147fb76.tar.gz
elgg-c6f3234b15bdbd2de3dda10c9941b36ed147fb76.tar.bz2
Adding more plugin-related fun
git-svn-id: https://code.elgg.org/elgg/trunk@41 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/plugins.php')
-rw-r--r--engine/lib/plugins.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/engine/lib/plugins.php b/engine/lib/plugins.php
index 81f5757e9..a5027486d 100644
--- a/engine/lib/plugins.php
+++ b/engine/lib/plugins.php
@@ -25,8 +25,8 @@
if ($handle = opendir($CONFIG->pluginspath)) {
while ($mod = readdir($handle)) {
- if (!in_array($mod,array('.','..','.svn','CVS')) && is_dir($mod)) {
- if (!@include($ONFIG->pluginspath . $mod . "/start.php"))
+ 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.");
}
}