]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/repeat.php
Twitter Import + avatar fixes (cleaning up + fixing)
[quix0rs-gnu-social.git] / actions / repeat.php
index 44c57456fa3cb6f5ead2b24d0016ee778aba9e4a..baa35f535e480e227322436f23224c7b7cd38bde 100644 (file)
@@ -65,7 +65,7 @@ class RepeatAction extends Action
             return false;
         }
 
-        $this->notice = Notice::staticGet('id', $id);
+        $this->notice = Notice::getKV('id', $id);
 
         if (empty($this->notice)) {
             // TRANS: Client error displayed when trying to repeat a non-existing notice.
@@ -76,6 +76,7 @@ class RepeatAction extends Action
         $token  = $this->trimmed('token-'.$id);
 
         if (empty($token) || $token != common_session_token()) {
+            // TRANS: Client error displayed when the session token does not match or is not given.
             $this->clientError(_('There was a problem with your session token. Try again, please.'));
             return false;
         }
@@ -106,7 +107,7 @@ class RepeatAction extends Action
                                 // TRANS: Confirmation text after repeating a notice.
                                 _('Repeated!'));
             $this->elementEnd('body');
-            $this->elementEnd('html');
+            $this->endHTML();
         } else {
             // @todo FIXME!
         }