v1.18.x
psychobunny 11 years ago
parent bbcff6a0a5
commit 4ee055c3ea

@ -169,7 +169,7 @@ var ajaxify = ajaxify || {};
}; };
ajaxify.getCustomTemplateMapping = function(tpl) { ajaxify.getCustomTemplateMapping = function(tpl) {
if (templatesConfig.custom_mapping && tpl !== undefined) { if (templatesConfig && templatesConfig.custom_mapping && tpl !== undefined) {
for (var pattern in templatesConfig.custom_mapping) { for (var pattern in templatesConfig.custom_mapping) {
if (tpl.match(pattern)) { if (tpl.match(pattern)) {
return (templatesConfig.custom_mapping[pattern]); return (templatesConfig.custom_mapping[pattern]);

Loading…
Cancel
Save