mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-08 06:55:46 +01:00
closes #1608
This commit is contained in:
@@ -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]);
|
||||
|
||||
Reference in New Issue
Block a user