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: *