includes/plugins.php
changeset 993 e7aa23ee7f7a
parent 979 aafb9f6806c9
child 1014 930c1fdd3e9f
equal deleted inserted replaced
989:79d558a94798 993:e7aa23ee7f7a
    75     
    75     
    76     $dir = ENANO_ROOT.'/plugins/';
    76     $dir = ENANO_ROOT.'/plugins/';
    77     
    77     
    78     $plugin_list = $this->get_plugin_list();
    78     $plugin_list = $this->get_plugin_list();
    79     $this->load_list = array();
    79     $this->load_list = array();
    80     
    80   
    81     foreach ( $plugin_list as $filename => $data )
    81     foreach ( $plugin_list as $filename => $data )
    82     {
    82     {
    83       if ( $data['status'] & PLUGIN_OUTOFDATE || $data['status'] & PLUGIN_DISABLED || ( !$data['installed'] && !$data['system plugin'] ) )
    83       if ( !$data['system plugin'] && ( $data['status'] & PLUGIN_OUTOFDATE || $data['status'] & PLUGIN_DISABLED || !$data['installed'] ) )
    84         continue;
    84         continue;
    85       
    85       
    86       $this->load_list[] = $filename;
    86       $this->load_list[] = $filename;
    87       $this->loaded_plugins[$filename] = $data;
    87       $this->loaded_plugins[$filename] = $data;
    88     }
    88     }