A lot rewrites and fixes for weak redirect methods
[shipsimu.git] / inc / classes / main / filter / crypto / class_CaptchaEncryptFilter.php
index 6abe368cd356c569777372f8675f002492c923d7..3a20eb2929e248358629cb47a37f7e704f8dec07 100644 (file)
@@ -35,12 +35,16 @@ class CaptchaEncryptFilter extends BaseFilter implements Filterable {
        /**
         * Creates an instance of this filter class
         *
-        * @return      $filterInstance         An instance of this filter class
+        * @param       $controllerInstance             An instance of a Controller class
+        * @return      $filterInstance                 An instance of this filter class
         */
-       public final static function createCaptchaEncryptFilter () {
+       public final static function createCaptchaEncryptFilter (Controller $controllerInstance) {
                // Get a new instance
                $filterInstance = new CaptchaEncryptFilter();
 
+               // Set the controller
+               $filterInstance->setControllerInstance($controllerInstance);
+
                // Return the instance
                return $filterInstance;
        }