Skip to content

Node.js based forum software built for the modern web

helpers.js fix maybe

barisusakli65bdeba38501
diff --git a/public/src/modules/helpers.js b/public/src/modules/helpers.js
index a0201ed6cc..042075e6a3 100644
--- a/public/src/modules/helpers.js
+++ b/public/src/modules/helpers.js
@@ -9,9 +9,6 @@
var helpers = {};
- var utils = utils || require('../utils'),
- S = S || require('string');
-
helpers.displayMenuItem = function(data, index) {
var item = data.navigation[index],
properties = item.properties;
@@ -47,10 +44,12 @@
};
helpers.escape = function(str) {
+ var utils = utils || require('../utils');
return utils.escapeHTML(str);
};
helpers.stripTags = function(str) {
+ var S = S || require('string');
return S(str).stripTags().s;
};