includes/plugins.php
changeset 568 3700f7124c2b
parent 560 8981dcf7d485
child 590 03a60844c7c5
equal deleted inserted replaced
567:7f196509bf78 568:3700f7124c2b
    62    */
    62    */
    63   
    63   
    64   function loadAll() 
    64   function loadAll() 
    65   {
    65   {
    66     global $db, $session, $paths, $template, $plugins; // Common objects
    66     global $db, $session, $paths, $template, $plugins; // Common objects
       
    67     
       
    68     // if we're in an upgrade, just skip this step
       
    69     if ( defined('IN_ENANO_UPGRADE') )
       
    70     {
       
    71       $this->load_list = array();
       
    72       return false;
       
    73     }
       
    74     
    67     $dir = ENANO_ROOT.'/plugins/';
    75     $dir = ENANO_ROOT.'/plugins/';
    68     
    76     
    69     $this->load_list = $this->system_plugins;
    77     $this->load_list = $this->system_plugins;
    70     $q = $db->sql_query('SELECT plugin_filename, plugin_version FROM ' . table_prefix . 'plugins WHERE plugin_flags & ~' . PLUGIN_DISABLED . ' = plugin_flags;');
    78     $q = $db->sql_query('SELECT plugin_filename, plugin_version FROM ' . table_prefix . 'plugins WHERE plugin_flags & ~' . PLUGIN_DISABLED . ' = plugin_flags;');
    71     if ( !$q )
    79     if ( !$q )