0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-10 23:36:14 -05:00

Used getter instead of looking up internal property

no-issue

Since express-hbs@1.10 we have a method to get the template options,
which should be used rather than reading internal "private" properties
This commit is contained in:
Fabien O'Carroll 2019-04-03 12:22:22 +02:00
parent c461c66b38
commit d0c1853797

View file

@ -80,7 +80,7 @@ class ActiveTheme {
}
updateTemplateOptions(options) {
engine._options.templateOptions = _.merge(engine._options.templateOptions, options);
engine.updateTemplateOptions(_.merge({}, engine.getTemplateOptions(), options));
}
config(key) {