Node.js based forum software built for the modern web
call methods directly
barisusakli566ff95d3cc5
diff --git a/src/controllers/sitemap.js b/src/controllers/sitemap.jsindex c87b1565a9..846c6facb2 100644--- a/src/controllers/sitemap.js+++ b/src/controllers/sitemap.js@@ -23,15 +23,11 @@ sitemapController.render = function (req, res, next) {};sitemapController.getPages = function (req, res, next) {- sendSitemap(function (callback) {- sitemap.getPages(callback);- }, res, next);+ sendSitemap(sitemap.getPages, res, next);};sitemapController.getCategories = function (req, res, next) {- sendSitemap(function (callback) {- sitemap.getCategories(callback);- }, res, next);+ sendSitemap(sitemap.getCategories, res, next);};sitemapController.getTopicPage = function (req, res, next) {