Node.js based forum software built for the modern web
#3011
psychobunny3ec99b802193
diff --git a/public/src/modules/helpers.js b/public/src/modules/helpers.jsindex f48a7e8c00..aa5e2413d4 100644--- a/public/src/modules/helpers.js+++ b/public/src/modules/helpers.js@@ -44,13 +44,20 @@};helpers.escape = function(str) {- var utils = utils || require('../utils');- return utils.escapeHTML(str);+ if (typeof utils !== 'undefined') {+ return utils.escapeHTML(str);+ } else {+ return require('../utils').escapeHTML(str);+ }};helpers.stripTags = function(str) {- var S = S || require('string');- return S(str).stripTags().s;+ if (typeof S !== 'undefined') {+ return S(str).stripTags().s;+ } else {+ var S = require('string');+ return S(str).stripTags().s;+ }};helpers.generateCategoryBackground = function(category) {