includes/plugins.php
changeset 832 7152ca0a0ce9
parent 825 9d5c04c1414f
child 846 0d2d0dfbe443
equal deleted inserted replaced
831:45e887f23282 832:7152ca0a0ce9
    85       if ( file_exists(ENANO_ROOT . "/plugins/{$row['plugin_filename']}") )
    85       if ( file_exists(ENANO_ROOT . "/plugins/{$row['plugin_filename']}") )
    86       {
    86       {
    87         $this->load_list[] = $row['plugin_filename'];
    87         $this->load_list[] = $row['plugin_filename'];
    88       }
    88       }
    89     }
    89     }
       
    90     $this->load_list = array_unique($this->load_list);
    90     
    91     
    91     $this->loaded_plugins = $this->get_plugin_list($this->load_list);
    92     $this->loaded_plugins = $this->get_plugin_list($this->load_list);
    92     
    93     
    93     // check for out-of-date plugins
    94     // check for out-of-date plugins
    94     foreach ( $this->load_list as $i => $plugin )
    95     foreach ( $this->load_list as $i => $plugin )
   646     
   647     
   647     $return = array(
   648     $return = array(
   648       'success' => true
   649       'success' => true
   649     );
   650     );
   650     
   651     
       
   652     $this->reimport_plugin_strings($filename, $plugin_list);
       
   653     
   651     endswitch;
   654     endswitch;
   652     
       
   653     $this->reimport_plugin_strings($filename, $plugin_list);
       
   654     
   655     
   655     $cache->purge('plugins');
   656     $cache->purge('plugins');
   656     $cache->purge('page_meta');
   657     $cache->purge('page_meta');
   657     $cache->purge('anon_sidebar');
   658     $cache->purge('anon_sidebar');
   658     
   659