Change var names

v1.18.x
RoiEX 8 years ago
parent 6420e22453
commit 33e474759b

@ -30,9 +30,9 @@ Controllers.admin = require('./admin');
Controllers.globalMods = require('./globalmods'); Controllers.globalMods = require('./globalmods');
Controllers.mods = require('./mods'); Controllers.mods = require('./mods');
Controllers.sitemap = require('./sitemap'); Controllers.sitemap = require('./sitemap');
Controllers.osd = require('./osd');
Controllers['404'] = require('./404'); Controllers['404'] = require('./404');
Controllers.errors = require('./errors'); Controllers.errors = require('./errors');
Controllers.handleOSDRequest = require('./osd');
Controllers.home = function (req, res, next) { Controllers.home = function (req, res, next) {
var route = meta.config.homePageRoute || (meta.config.homePageCustom || '').replace(/^\/+/, '') || 'categories'; var route = meta.config.homePageRoute || (meta.config.homePageCustom || '').replace(/^\/+/, '') || 'categories';

@ -6,7 +6,7 @@ var nconf = require('nconf');
var plugins = require('../plugins'); var plugins = require('../plugins');
var meta = require('../meta'); var meta = require('../meta');
module.exports = function (req, res, next) { module.exports.handle = function (req, res, next) {
if (plugins.hasListeners('filter:search.query')) { if (plugins.hasListeners('filter:search.query')) {
res.type('application/xml').send(generateXML()); res.type('application/xml').send(generateXML());
} else { } else {

@ -8,5 +8,5 @@ module.exports = function (app, middleware, controllers) {
app.get('/robots.txt', controllers.robots); app.get('/robots.txt', controllers.robots);
app.get('/manifest.json', controllers.manifest); app.get('/manifest.json', controllers.manifest);
app.get('/css/previews/:theme', controllers.admin.themes.get); app.get('/css/previews/:theme', controllers.admin.themes.get);
app.get('/osd.xml', controllers.handleOSDRequest); app.get('/osd.xml', controllers.osd.handle);
}; };

Loading…
Cancel
Save