mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-06-25 00:31:09 +02:00
Refactor template compilation
Always use persona as a fallback for templates
This commit is contained in:
@@ -138,10 +138,13 @@ Plugins.reloadRoutes = function (callback) {
|
||||
});
|
||||
};
|
||||
|
||||
// DEPRECATED: remove in v1.8.0
|
||||
Plugins.getTemplates = function (callback) {
|
||||
var templates = {};
|
||||
var tplName;
|
||||
|
||||
winston.warn('[deprecated] Plugins.getTemplates is DEPRECATED to be removed in v1.8.0');
|
||||
|
||||
Plugins.data.getActive(function (err, plugins) {
|
||||
if (err) {
|
||||
return callback(err);
|
||||
|
||||
Reference in New Issue
Block a user