Changeset 2968
- Timestamp:
- 07/06/08 18:42:46 (8 weeks ago)
- Files:
-
- 1 modified
-
trunk/modules/forge/libraries/Form_Input.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/modules/forge/libraries/Form_Input.php
r2593 r2968 365 365 * @return string|bool 366 366 */ 367 protected function input_value() 368 { 369 static $input, $method; 370 371 if ($input === NULL) 372 { 373 // Load the Input library 374 $input = new Input; 375 } 367 protected function input_value($name === array()) 368 { 369 // Get the Input instance 370 $input = Input::instance(); 376 371 377 372 // Fetch the method for this object 378 373 $method = $this->method; 379 374 380 return (func_num_args() > 0) ? $input->$method(func_get_arg(0)) : $input->$method();375 return $input->$method($name, NULL); 381 376 } 382 377
