Modernize poll JS
[GitHub/WoltLab/WCF.git] / wcfsetup / install / files / lib / action / PollAction.class.php
index 7604ff7c5ed81bcda97963d58014375939884d96..0fcccc39e0fefe2b76bdd120aba80656eb9d17f2 100644 (file)
@@ -166,7 +166,7 @@ class PollAction extends AJAXProxyAction
             'poll' => $this->poll,
         ]);
 
-        $returnValues['resultTemplate'] = WCF::getTPL()->fetch('pollResult');
+        $returnValues['template'] = WCF::getTPL()->fetch('pollResult');
     }
 
     /**
@@ -180,7 +180,7 @@ class PollAction extends AJAXProxyAction
             'poll' => $this->poll,
         ]);
 
-        $returnValues['voteTemplate'] = WCF::getTPL()->fetch('pollVote');
+        $returnValues['template'] = WCF::getTPL()->fetch('pollVote');
     }
 
     /**
@@ -205,7 +205,7 @@ class PollAction extends AJAXProxyAction
 
         // render vote template if votes are changeable
         if ($this->poll->isChangeable) {
-            $this->getVote($returnValues);
+            $this->getResult($returnValues);
         }
 
         $returnValues['canVote'] = $this->poll->isChangeable ? 1 : 0;