Changeset 2082
- Timestamp:
- 02/19/08 13:21:23 (5 months ago)
- Files:
-
- trunk/system/libraries/Validation.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/system/libraries/Validation.php
r2071 r2082 92 92 * @return string|object 93 93 */ 94 public function message($input , $message = NULL)94 public function message($input = NULL, $message = NULL) 95 95 { 96 96 if ($message === NULL) 97 97 { 98 if ($input === NULL) 99 { 100 $messages = array(); 101 foreach (array_keys($this->messages) as $input) 102 { 103 $messages[] = $this->message($input); 104 } 105 106 return implode("\n", $messages); 107 } 108 98 109 // Return nothing if no message exists 99 110 if (empty($this->messages[$input]))
