mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-06 04:06:29 +02:00
closes #2568
This commit is contained in:
@@ -169,12 +169,11 @@ function getTemplatesListing(req, res, next) {
|
||||
return next(err);
|
||||
}
|
||||
|
||||
var data = [];
|
||||
data = results.views.filter(function(value, index, self) {
|
||||
return self.indexOf(value) === index;
|
||||
}).map(function(el) {
|
||||
return el.replace(nconf.get('views_dir') + '/', '');
|
||||
});
|
||||
var data = results.views.filter(function(value, index, self) {
|
||||
return value && self.indexOf(value) === index;
|
||||
}).map(function(el) {
|
||||
return el && el.replace(nconf.get('views_dir') + '/', '');
|
||||
});
|
||||
|
||||
data = data.concat(results.extended);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user