Skip to content

Commit

Permalink
Removed tmp_bak array, no need for checking before save if anything c…
Browse files Browse the repository at this point in the history
…hanged
  • Loading branch information
HakanS committed Sep 10, 2011
1 parent 4645e48 commit 25b1f51
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions inc/plugincontroller.class.php
Expand Up @@ -15,8 +15,6 @@ class Doku_Plugin_Controller {
var $tmp_plugins = array();
var $plugin_cascade = array('default'=>array(),'local'=>array(),'protected'=>array());
var $last_local_config_file = '';
//backup of tmp_plugins needed for write check
var $tmp_bak =array();

/**
* Populates the master list of plugins
Expand Down Expand Up @@ -184,7 +182,6 @@ function saveList() {
global $conf;

if (empty($this->tmp_plugins)) return false;
if ($this->tmp_plugins == $this->tmp_bak) return false;

// Rebuild list of local settings
$local_plugins = $this->rebuildLocal();
Expand Down Expand Up @@ -244,7 +241,6 @@ function loadConfig() {
$this->plugin_cascade['default'] = array_merge($this->plugin_cascade['default'],$this->checkRequire($local));
}
$this->tmp_plugins = array_merge($this->plugin_cascade['default'],$this->plugin_cascade['local'],$this->plugin_cascade['protected']);
$this->tmp_bak = $this->tmp_plugins;
}

function _getListByType($type, $enabled) {
Expand Down

0 comments on commit 25b1f51

Please sign in to comment.