Changeset 2159 for trunk/system/libraries/Validation.php
- Timestamp:
- 02/24/2008 09:34:30 AM (11 months ago)
- Files:
-
- 1 modified
-
trunk/system/libraries/Validation.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/system/libraries/Validation.php
r2143 r2159 135 135 throw new Kohana_Exception('validation.filter_not_callable'); 136 136 137 $filter = (is_string($filter) AND strpos($filter, '::') !== FALSE) ? explode('::', $filter) : $filter; 137 $filter = (is_string($filter) AND strpos($filter, '::') !== FALSE) ? explode('::', $filter) : $filter; 138 138 139 139 if ($field === TRUE) … … 279 279 throw new Kohana_Exception('validation.callback_not_callable'); 280 280 281 $callback = (is_string($callback) AND strpos($callback, '::') !== FALSE) ? explode('::', $callback) : $callback; 282 283 // Add the filterto specified field281 $callback = (is_string($callback) AND strpos($callback, '::') !== FALSE) ? explode('::', $callback) : $callback; 282 283 // Add the callback to specified field 284 284 $this->callbacks[$field][] = $callback; 285 285 }
