Change the title of NewnoticeAction if replying

This commit is contained in:
Mikael Nordfeldth 2015-03-07 20:34:46 +01:00
parent 98b65763b0
commit 196df7d8a4
1 changed files with 4 additions and 1 deletions

View File

@ -62,6 +62,9 @@ class NewnoticeAction extends FormAction
// TRANS: Page title after sending a notice.
return _('Notice posted');
}
if ($this->int('inreplyto')) {
return _m('TITLE', 'New reply');
}
// TRANS: Page title for sending a new notice.
return _m('TITLE','New notice');
}
@ -128,7 +131,7 @@ class NewnoticeAction extends FormAction
Notice::maxContent()));
}
$replyto = intval($this->trimmed('inreplyto'));
$replyto = $this->int('inreplyto');
if ($replyto) {
$options['reply_to'] = $replyto;
}