Skip to content

Node.js based forum software built for the modern web

fixes #1294

psychobunnyd27eb17b3264
diff --git a/public/src/ajaxify.js b/public/src/ajaxify.js
index ba7f038a59..9cfc90e8f3 100644
--- a/public/src/ajaxify.js
+++ b/public/src/ajaxify.js
@@ -162,10 +162,10 @@ var ajaxify = ajaxify || {};
};
ajaxify.getCustomTemplateMapping = function(tpl) {
- if (config.custom_mapping && tpl) {
- for (var pattern in config.custom_mapping) {
+ if (templatesConfig.custom_mapping && tpl) {
+ for (var pattern in templatesConfig.custom_mapping) {
if (tpl.match(pattern)) {
- return (config.custom_mapping[pattern]);
+ return (templatesConfig.custom_mapping[pattern]);
}
}
}