protected function loadDisabled()
    {
        $path = $this->metaFile;

        if (($configDisabled = Config::get('cms.disablePlugins')) && is_array($configDisabled)) {
            foreach ($configDisabled as $disabled) {
                $this->disabledPlugins[$disabled] = true;
            }
        }

        if (File::exists($path)) {
            $disabled = json_decode(File::get($path), true) ?: [];
            $this->disabledPlugins = array_merge($this->disabledPlugins, $disabled);
        }
        else {
            $this->populateDisabledPluginsFromDb();
            $this->writeDisabled();
        }
    }
protected function loadDisabled()
    {
        $path = $this->metaFile;

        if (($configDisabled = Config::get('cms.disablePlugins')) && is_array($configDisabled)) {
            foreach ($configDisabled as $disabled) {
                $this->disabledPlugins[$disabled] = true;
            }
        }

        if (File::exists($path)) {
            $disabled = json_decode(File::get($path), true) ?: [];
            $this->disabledPlugins = array_merge($this->disabledPlugins, $disabled);
        }
        else {
            $this->populateDisabledPluginsFromDb();
            $this->writeDisabled();
        }
    }
protected function loadDisabled ( ) { $ path = $ this -> metaFile ; if ( ( $ configDisabled = Config :: get ( 'cms.disablePlugins' ) ) && is_array ( $ configDisabled ) ) { foreach ( $ configDisabled as $ disabled ) { $ this -> disabledPlugins [ $ disabled ] = true ; } } if ( File :: exists ( $ path ) ) { $ disabled = json_decode ( File :: get ( $ path ) , true ) ? : [ ] ; $ this -> disabledPlugins = array_merge ( $ this -> disabledPlugins , $ disabled ) ; } else { $ this -> populateDisabledPluginsFromDb ( ) ; $ this -> writeDisabled ( ) ; } }
Loads all disables plugins from the meta file.
Loads all disables plugins from the meta file .