modified setting of res.data.title according to new story extension capabilities

This commit is contained in:
Tobi Schäfer 2002-07-12 12:39:49 +00:00
parent 5a96582c5e
commit f3f623901f

View file

@ -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");