summaryrefslogtreecommitdiffstats
path: root/lib/api
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2016-05-12 11:15:13 +0200
committerSamy Pessé <samypesse@gmail.com>2016-05-12 11:15:13 +0200
commit8aa2f3075c81161746cd63a388ce0eddc536ac15 (patch)
treea33ac0df67023a69b985b650e3b33af7e12ae117 /lib/api
parent839ee0385af2e6a9917826b07dd61c851244e6e0 (diff)
downloadgitbook-8aa2f3075c81161746cd63a388ce0eddc536ac15.zip
gitbook-8aa2f3075c81161746cd63a388ce0eddc536ac15.tar.gz
gitbook-8aa2f3075c81161746cd63a388ce0eddc536ac15.tar.bz2
Fix #1294: multilingual book should extend the book's config
Diffstat (limited to 'lib/api')
-rw-r--r--lib/api/decodeConfig.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/api/decodeConfig.js b/lib/api/decodeConfig.js
index 351ed05..5e00df5 100644
--- a/lib/api/decodeConfig.js
+++ b/lib/api/decodeConfig.js
@@ -1,5 +1,3 @@
-var Config = require('../models/config');
-
/**
Decode changes from a JS API to a config object
@@ -13,7 +11,7 @@ function decodeGlobal(config, result) {
delete values.generator;
delete values.output;
- return Config.updateValues(config, values);
+ return config.updateValues(values);
}
module.exports = decodeGlobal;