]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/Poll/respondpoll.php
More info for a proper, fancy-url lighttpd setup
[quix0rs-gnu-social.git] / plugins / Poll / respondpoll.php
index 74629c3604b2ba10846b6c5cc1b7164b519fb772..df3f68e87c63511f6f94b7a4e9d223eaf37dd7d3 100644 (file)
@@ -81,7 +81,7 @@ class RespondPollAction extends Action
 
         if (empty($this->user)) {
             // TRANS: Client exception thrown trying to respond to a poll while not logged in.
-            throw new ClientException(_m("You must be logged in to respond to a poll."),
+            throw new ClientException(_m('You must be logged in to respond to a poll.'),
                                       403);
         }
 
@@ -90,7 +90,7 @@ class RespondPollAction extends Action
         }
 
         $id = $this->trimmed('id');
-        $this->poll = Poll::staticGet('id', $id);
+        $this->poll = Poll::getKV('id', $id);
         if (empty($this->poll)) {
             // TRANS: Client exception thrown trying to respond to a non-existing poll.
             throw new ClientException(_m('Invalid or missing poll.'), 404);