Added ENANO_NO_PLUGINS optional switch to common_cli.
--- 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');