mikuli.cz

:)
git clone https://git.sr.ht/~ashymad/mikuli.cz
Log | Files | Refs

commit 7866751e1f4e96a0fc0cf4d7367edebd4e95e01b
parent 349c5101496b4e82180cf024b41cfc6a834d7fdd
Author: markseu <mark2011@mayberg.se>
Date:   Wed, 13 Jun 2018 11:12:33 +0200

Updated core, API

Diffstat:
Msystem/plugins/core.php | 12+++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/system/plugins/core.php b/system/plugins/core.php @@ -331,7 +331,7 @@ class YellowCore if($this->config->get("startupUpdate")!="none") { $fileNameConfig = $this->config->get("configDir").$this->config->get("configFile"); - $this->config->update($fileNameConfig, array("startupUpdate" => "none")); + $this->config->save($fileNameConfig, array("startupUpdate" => "none")); } } @@ -1887,8 +1887,8 @@ class YellowConfig } } - // Update configuration in file - function update($fileName, $config) + // Save configuration to file + function save($fileName, $config) { $configNew = new YellowDataCollection(); foreach($config as $key=>$value) @@ -1919,6 +1919,12 @@ class YellowConfig return $this->yellow->toolbox->createFile($fileName, $fileDataNew); } + // Update configuration in file, TODO: remove later, used for backwards compatibility + function update($fileName, $config) + { + $this->save($fileName, $config); + } + // Set default configuration function setDefault($key, $value) {