]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/QnA/actions/qnavote.php
Trying to debug some stuff regarding oEmbed
[quix0rs-gnu-social.git] / plugins / QnA / actions / qnavote.php
index 5e227a69ceada7edf48c6efec8576336bd0b4e59..5531b3124bdfe4f8fd2d3dbc05e36cdf88ebcd81 100644 (file)
@@ -74,7 +74,7 @@ class Qnavote extends Action
     {
         parent::prepare($argarray);
         if ($this->boolean('ajax')) {
-            StatusNet::setApi(true);
+            GNUsocial::setApi(true);
         }
 
         $this->user = common_current_user();
@@ -153,7 +153,7 @@ class Qnavote extends Action
             $this->elementEnd('body');
             $this->endHTML();
         } else {
-            common_redirect($this->question->bestUrl(), 303);
+            common_redirect($this->question->getUrl(), 303);
         }
     }