From a7c8016acf3a366c2cc50c56ef5321167d022e30 Mon Sep 17 00:00:00 2001 From: jeteon Date: Sat, 28 Feb 2015 08:00:17 +0200 Subject: [PATCH 1/2] Match constructor signature with parent class Fix constructor arguments to be compatible with the original `CI_Form_validation` constructor and pass on any arguments given. I won't pretend to the know the reason now, but if you don't do this, then the validation rules you set in a global config file as described in https://ellislab.com/codeIgniter/user-guide/libraries/form_validation.html aren't used. --- library_files/application/libraries/MY_Form_validation.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/library_files/application/libraries/MY_Form_validation.php b/library_files/application/libraries/MY_Form_validation.php index d843fe5..18b58c8 100644 --- a/library_files/application/libraries/MY_Form_validation.php +++ b/library_files/application/libraries/MY_Form_validation.php @@ -2,9 +2,9 @@ class MY_Form_validation extends CI_Form_validation { - public function __construct() + public function __construct($rules = array()) { - parent::__construct(); + parent::__construct($rules); } // Check identity is available @@ -98,4 +98,4 @@ protected function validate_math_captcha($input) } /* End of file MY_Form_validation.php */ -/* Location: ./application/library/MY_Form_validation.php */ \ No newline at end of file +/* Location: ./application/library/MY_Form_validation.php */ From dcbf0d89a07cb04d1954efcdbd716fbae5bab785 Mon Sep 17 00:00:00 2001 From: Neo Date: Fri, 13 Mar 2015 19:49:51 +0200 Subject: [PATCH 2/2] Remove broken support link. The forum thread on the Ellis Lab website is no longer there. --- readme.txt | 2 -- 1 file changed, 2 deletions(-) diff --git a/readme.txt b/readme.txt index cb23383..5db8bbe 100644 --- a/readme.txt +++ b/readme.txt @@ -10,5 +10,3 @@ flexi auth Concept: http://haseydesign.com/flexi-auth/user_guide/concept/ Library Overview: http://haseydesign.com/flexi-auth/ Library Demo: http://haseydesign.com/flexi-auth/auth_lite/demo/ Library User Guide: http://haseydesign.com/flexi-auth/user_guide/ - -Support : http://ellislab.com/forums/viewthread/224351/ \ No newline at end of file