From c6f3234b15bdbd2de3dda10c9941b36ed147fb76 Mon Sep 17 00:00:00 2001 From: ben Date: Fri, 15 Feb 2008 13:46:08 +0000 Subject: Adding more plugin-related fun git-svn-id: https://code.elgg.org/elgg/trunk@41 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/plugins.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engine/lib/plugins.php') 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."); } } -- cgit v1.2.3