Skip to content
Snippets Groups Projects
Commit e0e514e1 authored by Andreas Gohr's avatar Andreas Gohr
Browse files

touch the config on save, even if no changes were made

parent 182ac905
No related branches found
No related tags found
No related merge requests found
......@@ -67,6 +67,8 @@ class admin_plugin_config extends DokuWiki_Admin_Plugin {
$this->_close_session();
header("Location: ".wl($ID,array('do'=>'admin','page'=>'config'),true,'&'));
exit();
} elseif(!$this->_error) {
$this->_config->touch_settings(); // just touch to refresh cache
}
$this->_close_session();
......
......@@ -130,6 +130,15 @@ if (!class_exists('configuration')) {
return true;
}
/**
* Update last modified time stamp of the config file
*/
function touch_settings(){
if ($this->locked) return false;
$file = end($this->_local_files);
return @touch($file);
}
function _read_config_group($files) {
$config = array();
foreach ($files as $file) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment