includes/common.php
changeset 527 21e11f564463
parent 500 455277559782
child 536 218a627eb53e
--- a/includes/common.php	Wed Apr 09 19:27:02 2008 -0400
+++ b/includes/common.php	Wed Apr 09 22:37:37 2008 -0400
@@ -308,8 +308,8 @@
 // Load plugins from common because we can't give plugins full abilities in object context
 foreach ( $plugins->load_list as $f )
 {
-  if ( file_exists($f) )
-    include_once $f;
+  if ( file_exists(ENANO_ROOT . '/plugins/' . $f) )
+    include_once ENANO_ROOT . '/plugins/' . $f;
 }
 
 profiler_log('Loaded plugins');