From 61e9909327343c5c5f1e5bcc1b4a5fd61f30e9da Mon Sep 17 00:00:00 2001 From: Shish Date: Wed, 15 Aug 2012 18:31:28 +0100 Subject: [PATCH] hardcoded config too (unrelated) --- core/config.class.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/core/config.class.php b/core/config.class.php index 8fc7b4d9..4fdfc2b4 100644 --- a/core/config.class.php +++ b/core/config.class.php @@ -120,6 +120,20 @@ abstract class BaseConfig implements Config { } +/** + * For testing, mostly + */ +class HardcodeConfig extends BaseConfig { + public function __construct($dict) { + $this->values = $dict; + } + + public function save(/*string*/ $name=null) { + // static config is static + } +} + + /** * Loads the config list from a PHP file; the file should be in the format: *