]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/nudge.php
Bad route config (thanks brw12)
[quix0rs-gnu-social.git] / actions / nudge.php
index a44915a2d69955a7692547c164d1ecc34d81c5e3..0ca3753dc7bc03427138f3163322f42bf93684f8 100644 (file)
@@ -66,7 +66,7 @@ class NudgeAction extends Action
         }
 
         $user  = common_current_user();
-        $other = User::staticGet('nickname', $this->arg('nickname'));
+        $other = User::getKV('nickname', $this->arg('nickname'));
 
         if ($_SERVER['REQUEST_METHOD'] != 'POST') {
             common_redirect(common_local_url('showstream',
@@ -101,7 +101,7 @@ class NudgeAction extends Action
             // TRANS: Confirmation text after sending a nudge.
             $this->element('p', array('id' => 'nudge_response'), _('Nudge sent!'));
             $this->elementEnd('body');
-            $this->elementEnd('html');
+            $this->endHTML();
         } else {
             // display a confirmation to the user
             common_redirect(common_local_url('showstream',