Added ENANO_NO_PLUGINS optional switch to common_cli.
authorDan
Sun, 17 Aug 2008 23:24:18 -0400
changeset 695 6bd7215c718b
parent 694 43367c66d869
child 696 bd5069e1f19a
Added ENANO_NO_PLUGINS optional switch to common_cli.
includes/common_cli.php
--- 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');