} catch (e) {
return reject(e);
}
-
+
fs.readdir(__dirname + '/../client/src/translations/', function readTranslationFile(err, pofiles) {
var trans = [];
'src/models/query.js',
'src/models/server.js', // Depends on models/channel.js
'src/models/pluginmanager.js',
- 'src/models/datastore.js',
- 'src/helpers/utils.js',
- 'src/helpers/formatdate.js',
- 'src/helpers/plugininterface.js'
+ 'src/models/datastore.js'
],
// Some views extend these, so make sure they're loaded beforehand
]
]);
+ // Load any helpers we may have
var helpers_path = global.config.public_http + 'src/helpers/';
var helpers_sources = fs.readdirSync(helpers_path)
.map(function(file){