]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/Poll/newpoll.php
More info for a proper, fancy-url lighttpd setup
[quix0rs-gnu-social.git] / plugins / Poll / newpoll.php
index 1048b0a1edd930d87b89cb4a99d600993b56bda1..e7d5d3dd0d6d32484d7b9cb9e4f83cada24bb1c0 100644 (file)
@@ -138,10 +138,19 @@ class NewPollAction extends Action
                 throw new ClientException(_m('Poll must have at least two options.'));
             }
 
+            // Notice options; distinct from choices for the poll
+
+            $options = array();
+
+            // Does the heavy-lifting for getting "To:" information
+
+            ToSelector::fillOptions($this, $options);
 
             $saved = Poll::saveNew($this->user->getProfile(),
-                                              $this->question,
-                                              $this->options);
+                                   $this->question,
+                                   $this->options,
+                                   $options);
+
         } catch (ClientException $ce) {
             $this->error = $ce->getMessage();
             $this->showPage();