X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Fformaction.php;h=73576bf46a464604cafb8af2e847f82eb514dedc;hb=10f2cde0b1d75fa023b00400162cb525e8719514;hp=1740bd1b49c8dda080650f0ab1ed0bde013dd067;hpb=a35838be9e34d2e2e3a407e16cee60fb65943a2d;p=quix0rs-gnu-social.git diff --git a/lib/formaction.php b/lib/formaction.php index 1740bd1b49..73576bf46a 100644 --- a/lib/formaction.php +++ b/lib/formaction.php @@ -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; }