X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=plugins%2FPoll%2Factions%2Frespondpoll.php;h=c78038478daae2244a9d4a24852d49a9d5b1639d;hb=HEAD;hp=8de929241741f342226570d5d3c0cedabc1cfc1e;hpb=1c6f9df80e7e6927e964fdfdd72fda9b15106ddd;p=quix0rs-gnu-social.git diff --git a/plugins/Poll/actions/respondpoll.php b/plugins/Poll/actions/respondpoll.php index 8de9292417..c78038478d 100644 --- a/plugins/Poll/actions/respondpoll.php +++ b/plugins/Poll/actions/respondpoll.php @@ -74,7 +74,7 @@ class RespondPollAction extends Action { parent::prepare($argarray); if ($this->boolean('ajax')) { - StatusNet::setApi(true); + GNUsocial::setApi(true); } $this->user = common_current_user(); @@ -155,7 +155,7 @@ class RespondPollAction extends Action $this->elementEnd('body'); $this->endHTML(); } else { - common_redirect($this->poll->bestUrl(), 303); + common_redirect($this->poll->getUrl(), 303); } } @@ -186,7 +186,7 @@ class RespondPollAction extends Action * * @return boolean is read only action? */ - function isReadOnly($args) + function isReadOnly(array $args=array()) { if ($_SERVER['REQUEST_METHOD'] == 'GET' || $_SERVER['REQUEST_METHOD'] == 'HEAD') {