Node.js based forum software built for the modern web
removed an unused hack in utils.js
psychobunnyf73fd1eeae65
diff --git a/public/src/utils.js b/public/src/utils.jsindex 1ebd7e475b..c37479547d 100644--- a/public/src/utils.js+++ b/public/src/utils.js@@ -28,9 +28,7 @@//Adapted from http://stackoverflow.com/questions/5827612/node-js-fs-readdir-recursive-directory-searchwalk: function(dir, done) {- var results = [],- path = require('path'),- main_dir = path.join(__dirname, '..', 'templates');+ var results = [];fs.readdir(dir, function(err, list) {if (err) {@@ -51,7 +49,7 @@}});} else {- results.push(file.replace(main_dir + '/', '').replace('.tpl', ''));+ results.push(file);if (!--pending) {done(null, results);}