]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/formaction.php
DB updated to 1.8.2
[quix0rs-gnu-social.git] / lib / formaction.php
index 1740bd1b49c8dda080650f0ab1ed0bde013dd067..73576bf46a464604cafb8af2e847f82eb514dedc 100644 (file)
@@ -44,6 +44,7 @@ if (!defined('STATUSNET')) {
 class FormAction extends ManagedAction
 {
     protected $form = null;
+    protected $formOpts = array();
     protected $type = null;
     protected $needLogin = true;
     protected $canPost = true;
@@ -114,7 +115,7 @@ class FormAction extends ManagedAction
     protected function getForm()
     {
         $class = $this->form.'Form';
-        $form = new $class($this);
+        $form = new $class($this, $this->formOpts);
         return $form;
     }