|
@@ -527,7 +527,9 @@ module.exports = function(crowi) {
|
|
|
});
|
|
});
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
- // find all templates applicable to the new page
|
|
|
|
|
|
|
+ /**
|
|
|
|
|
+ * find all templates applicable to the new page
|
|
|
|
|
+ */
|
|
|
pageSchema.statics.findTemplate = function(path) {
|
|
pageSchema.statics.findTemplate = function(path) {
|
|
|
const Page = this;
|
|
const Page = this;
|
|
|
const templatePath = cutOffLastSlash(path);
|
|
const templatePath = cutOffLastSlash(path);
|