modified setting of res.data.title according to new story extension capabilities
This commit is contained in:
parent
5a96582c5e
commit
f3f623901f
1 changed files with 5 additions and 4 deletions
|
@ -4,10 +4,6 @@ if (deny) {
|
|||
res.redirect(this.site.href());
|
||||
}
|
||||
|
||||
res.data.title = this.site.title;
|
||||
if (this.title)
|
||||
res.data.title += " - " + encode(this.title);
|
||||
|
||||
if (req.data.submit == "cancel" || req.data.cancel)
|
||||
res.redirect(this.href());
|
||||
else if ((req.data.submit == "save" || req.data.save) && this.site.hasDiscussions()) {
|
||||
|
@ -17,6 +13,11 @@ else if ((req.data.submit == "save" || req.data.save) && this.site.hasDiscussion
|
|||
res.redirect(this.href());
|
||||
}
|
||||
|
||||
res.data.title = this.site.title;
|
||||
var storytitle = this.getContentPart("title");
|
||||
if (storytitle)
|
||||
res.data.title += " - " + encode(storytitle);
|
||||
|
||||
res.data.body = this.renderSkinAsString("main");
|
||||
|
||||
path.site.renderSkin("page");
|
||||
|
|
Loading…
Add table
Reference in a new issue