includes/plugins.php
changeset 995 d2061e3d6991
parent 992 34a7fe38d78b
child 1014 930c1fdd3e9f
equal deleted inserted replaced
991:1ad055d689fc 995:d2061e3d6991
    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     }