- Timestamp:
- Feb 24, 2022 9:37:52 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/App.inc.php
r752 r762 341 341 * @access public 342 342 * @param string $param The key of the parameter to return. 343 * @param string $default The value to return if $param does not exist in $this->_params. 343 344 * @return mixed Parameter value, or null if not existing. 344 345 */ 345 public function getParam($param=null )346 public function getParam($param=null, $default=null) 346 347 { 347 348 if ($param === null) { … … 350 351 return $this->_params[$param]; 351 352 } else { 352 return null;353 return $default; 353 354 } 354 355 }
Note: See TracChangeset
for help on using the changeset viewer.