Changeset 2159
- Timestamp:
- 02/24/08 10:34:30 (5 months ago)
- Files:
-
- trunk/modules/auth/controllers/auth.php (modified) (1 diff)
- trunk/system/core/Kohana.php (modified) (2 diffs)
- trunk/system/libraries/Validation.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/modules/auth/controllers/auth.php
r2093 r2159 79 79 if ($this->auth->login($user, $form->password->value)) 80 80 { 81 echo "<h4>Login Success!</h4>";82 echo "<p>Your roles are:</p>";81 echo '<h4>Login Success!</h4>'; 82 echo '<p>Your roles are:</p>'; 83 83 echo Kohana::debug($user->roles); 84 84 return; trunk/system/core/Kohana.php
r2155 r2159 1010 1010 foreach($params as $var) 1011 1011 { 1012 $output[] = '<pre> '.html::specialchars(print_r($var, TRUE)).'</pre>';1012 $output[] = '<pre>('.gettype($var).') '.html::specialchars(print_r($var, TRUE)).'</pre>'; 1013 1013 } 1014 1014 … … 1068 1068 } 1069 1069 1070 $temp .= $sep. print_r($arg, TRUE);1070 $temp .= $sep.html::specialchars(print_r($arg, TRUE)); 1071 1071 1072 1072 // Change separator to a comma 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 }
