mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-19 08:31:43 +03:00
0ae0a0b490
refs #6982 - a replace for all config usages - always use config.get or config.set - this a pure replacement, no logic has changed [ci skip]
11 lines
242 B
JavaScript
11 lines
242 B
JavaScript
var config = require('../config'),
|
|
flagIsSet;
|
|
|
|
flagIsSet = function flagIsSet(flag) {
|
|
var labsConfig = config.get('labs');
|
|
|
|
return labsConfig && labsConfig[flag] && labsConfig[flag] === true;
|
|
};
|
|
|
|
module.exports.isSet = flagIsSet;
|