Changeset 2069
- Timestamp:
- 02/16/2008 11:36:03 PM (8 months ago)
- Files:
-
- 1 modified
-
trunk/system/libraries/Validation.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/system/libraries/Validation.php
r2064 r2069 124 124 throw new Kohana_Exception('validation.filter_not_callable'); 125 125 126 $filter = (is_string($filter) AND strpos($filter, '::') !== FALSE) ? explode('::', $filter) : $filter; 127 126 128 if ($field === TRUE) 127 129 { … … 158 160 throw new Kohana_Exception('validation.filter_not_callable'); 159 161 162 $filter = (is_string($filter) AND strpos($filter, '::') !== FALSE) ? explode('::', $filter) : $filter; 163 160 164 if ($field === TRUE) 161 165 { … … 221 225 throw new Kohana_Exception('validation.rule_not_callable'); 222 226 227 $rule = (is_string($rule) AND strpos($rule, '::') !== FALSE) ? explode('::', $rule) : $rule; 228 223 229 // Add the rule to specified field 224 230 $this->rules[$field][] = array($rule, $args); … … 258 264 if ( ! is_callable($callback, TRUE)) 259 265 throw new Kohana_Exception('validation.callback_not_callable'); 266 267 $callback = (is_string($callback) AND strpos($callback, '::') !== FALSE) ? explode('::', $callback) : $callback; 260 268 261 269 // Add the filter to specified field
