From a95a7bf3a77d3c38a54af67b2f7584c480381691 Mon Sep 17 00:00:00 2001 From: Hakan Sandell Date: Sat, 10 Sep 2011 19:47:00 +0200 Subject: empty conf/plugins.local is created if not existing --- inc/plugincontroller.class.php | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'inc') diff --git a/inc/plugincontroller.class.php b/inc/plugincontroller.class.php index cdaee2e8f..734331c94 100644 --- a/inc/plugincontroller.class.php +++ b/inc/plugincontroller.class.php @@ -158,6 +158,9 @@ class Doku_Plugin_Controller { } } $this->tmp_plugins = $all_plugins; + if (!file_exists($this->last_local_config_file)) { + $this->saveList(true); + } } } @@ -178,17 +181,18 @@ class Doku_Plugin_Controller { /** * Save the current list of plugins */ - function saveList() { + function saveList($forceSave = false) { global $conf; if (empty($this->tmp_plugins)) return false; // Rebuild list of local settings $local_plugins = $this->rebuildLocal(); - if($local_plugins != $this->plugin_cascade['local']) { + if($local_plugins != $this->plugin_cascade['local'] || $forceSave) { $file = $this->last_local_config_file; - $out = " $value) { $out .= "\$plugins['$plugin'] = $value;\n"; } -- cgit v1.2.3