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