includes/common_cli.php
changeset 695 6bd7215c718b
parent 685 17ebe24cdf85
child 801 eb8b23f11744
equal deleted inserted replaced
694:43367c66d869 695:6bd7215c718b
   141 profiler_log('Fetched plugin list');
   141 profiler_log('Fetched plugin list');
   142 
   142 
   143 global $plugins;
   143 global $plugins;
   144 
   144 
   145 // Load plugins from common because we can't give plugins full abilities in object context
   145 // Load plugins from common because we can't give plugins full abilities in object context
   146 foreach ( $plugins->load_list as $f )
   146 if ( !defined('ENANO_NO_PLUGINS') )
   147 {
   147 {
   148   if ( file_exists(ENANO_ROOT . '/plugins/' . $f) )
   148   foreach ( $plugins->load_list as $f )
   149     include_once ENANO_ROOT . '/plugins/' . $f;
   149   {
       
   150     if ( file_exists(ENANO_ROOT . '/plugins/' . $f) )
       
   151       include_once ENANO_ROOT . '/plugins/' . $f;
       
   152   }
   150 }
   153 }
   151 
   154 
   152 profiler_log('Loaded plugins');
   155 profiler_log('Loaded plugins');
   153 
   156 
   154 // Three fifths of the Enano API gets the breath of life right here.
   157 // Three fifths of the Enano API gets the breath of life right here.