summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaroly Negyesi2011-06-10 21:36:49 (GMT)
committer Karoly Negyesi2011-06-10 21:36:49 (GMT)
commita857273e8dc865e3e8d697975fbd7a87bc90238b (patch)
tree1da26ea8724c56c1e0cf7c511dfd6c21c26178c2
parente1fd276456e7514b6725e234f5db403e5ba1a3dd (diff)
Meh again
-rw-r--r--includes/config.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/includes/config.inc b/includes/config.inc
index f81b380..15b97dd 100644
--- a/includes/config.inc
+++ b/includes/config.inc
@@ -278,12 +278,12 @@ function config_get_names_with_prefix($prefix) {
}
function config($name, $class = 'DrupalConfig') {
- return new $class($name);
+ return new $class(new DrupalVerifiedStorageSQL('json', $name));
}
class DrupalConfig {
- public function __construct($name) {
- $this->_verifiedStorage = new DrupalVerifiedStorageSQL('json', $name);
+ public function __construct($storage) {
+ $this->_verifiedStorage = $storage;
foreach (json_decode($this->_verifiedStorage->read()) as $key => $value) {
$this->$key = $value;
}