From 4ee055c3ea9333370463112ce68cef0649db6494 Mon Sep 17 00:00:00 2001 From: psychobunny Date: Fri, 30 May 2014 15:30:37 -0400 Subject: [PATCH] closes #1608 --- public/src/ajaxify.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/src/ajaxify.js b/public/src/ajaxify.js index a1780099cb..0c3911433f 100644 --- a/public/src/ajaxify.js +++ b/public/src/ajaxify.js @@ -169,7 +169,7 @@ var ajaxify = ajaxify || {}; }; ajaxify.getCustomTemplateMapping = function(tpl) { - if (templatesConfig.custom_mapping && tpl !== undefined) { + if (templatesConfig && templatesConfig.custom_mapping && tpl !== undefined) { for (var pattern in templatesConfig.custom_mapping) { if (tpl.match(pattern)) { return (templatesConfig.custom_mapping[pattern]);