changes necessary because evalPreferences() now returns an Object
This commit is contained in:
parent
1b93d93a3a
commit
4fe474d127
1 changed files with 4 additions and 2 deletions
|
@ -9,8 +9,10 @@ if (deny) {
|
|||
if (req.data.submit == "cancel" || req.data.cancel)
|
||||
res.redirect(this.href());
|
||||
else if (req.data.submit == "save" || req.data.save) {
|
||||
res.message = this.updateWeblog(req.data,user);
|
||||
res.redirect(this.href());
|
||||
var result = this.evalPreferences(req.data,user);
|
||||
res.message = result.message;
|
||||
if (!result.error)
|
||||
res.redirect(this.href());
|
||||
}
|
||||
|
||||
res.skin = "weblog.page";
|
||||
|
|
Loading…
Add table
Reference in a new issue