]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Change the title of NewnoticeAction if replying
authorMikael Nordfeldth <mmn@hethane.se>
Sat, 7 Mar 2015 19:34:46 +0000 (20:34 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Sat, 7 Mar 2015 19:34:46 +0000 (20:34 +0100)
actions/newnotice.php

index f9b04cae3c3b29d325cb4797f2a87d782e437e11..ff1af6344255a13626f84181a2e24a16e551f9e2 100644 (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;
         }