diff options
author | Samy Pessé <samypesse@gmail.com> | 2016-04-29 15:08:54 +0200 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2016-04-29 15:08:54 +0200 |
commit | 0ed524bce508f3f9ebb475d06c662cad948e224a (patch) | |
tree | 79a22f2d07980184a8bbea03d358f91a1e203e26 /lib/models | |
parent | 94199af7b293b9c6f82a2e1c341587adee5b0792 (diff) | |
download | gitbook-0ed524bce508f3f9ebb475d06c662cad948e224a.zip gitbook-0ed524bce508f3f9ebb475d06c662cad948e224a.tar.gz gitbook-0ed524bce508f3f9ebb475d06c662cad948e224a.tar.bz2 |
Correctly setup configuration for plugins in multilingual books
Diffstat (limited to 'lib/models')
-rw-r--r-- | lib/models/book.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/models/book.js b/lib/models/book.js index 8f8ab74..693e830 100644 --- a/lib/models/book.js +++ b/lib/models/book.js @@ -245,8 +245,11 @@ Book.createFromParent = function createFromParent(parent, language) { var ignore = parent.getIgnore(); return new Book({ + // Inherits config. logegr and list of ignored files logger: parent.getLogger(), + config: parent.getConfig(), ignore: Ignore().add(ignore), + language: language, fs: FS.reduceScope(parent.getContentFS(), language) }); |