diff options
author | Samy Pessé <samypesse@gmail.com> | 2016-05-12 11:15:13 +0200 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2016-05-12 11:15:13 +0200 |
commit | 8aa2f3075c81161746cd63a388ce0eddc536ac15 (patch) | |
tree | a33ac0df67023a69b985b650e3b33af7e12ae117 /lib/api | |
parent | 839ee0385af2e6a9917826b07dd61c851244e6e0 (diff) | |
download | gitbook-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.js | 4 |
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; |