mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-08 00:22:51 +01:00
clean up ENDIF conditional if object.value is undefined and is used in an ELSE block
This commit is contained in:
@@ -410,7 +410,8 @@
|
||||
} else {
|
||||
// clean up all undefined conditionals
|
||||
template = template.replace(/<!-- ELSE -->/gi, 'ENDIF -->')
|
||||
.replace(/<!-- IF([^@]*?)ENDIF([^@]*?)-->/gi, '');
|
||||
.replace(/<!-- IF([^@]*?)ENDIF([^@]*?)-->/gi, '')
|
||||
.replace(/<!-- ENDIF ([^@]*?)-->/gi, '');
|
||||
}
|
||||
|
||||
return template;
|
||||
|
||||
Reference in New Issue
Block a user