includes/common_cli.php
changeset 695 6bd7215c718b
parent 685 17ebe24cdf85
child 801 eb8b23f11744
--- a/includes/common_cli.php	Wed Aug 13 08:57:45 2008 -0400
+++ b/includes/common_cli.php	Sun Aug 17 23:24:18 2008 -0400
@@ -143,10 +143,13 @@
 global $plugins;
 
 // Load plugins from common because we can't give plugins full abilities in object context
-foreach ( $plugins->load_list as $f )
+if ( !defined('ENANO_NO_PLUGINS') )
 {
-  if ( file_exists(ENANO_ROOT . '/plugins/' . $f) )
-    include_once ENANO_ROOT . '/plugins/' . $f;
+  foreach ( $plugins->load_list as $f )
+  {
+    if ( file_exists(ENANO_ROOT . '/plugins/' . $f) )
+      include_once ENANO_ROOT . '/plugins/' . $f;
+  }
 }
 
 profiler_log('Loaded plugins');