includes/common_cli.php
changeset 698 40f9528b6348
parent 695 6bd7215c718b
child 801 eb8b23f11744
equal deleted inserted replaced
697:8e9ba8b131fa 698:40f9528b6348
   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.