Changeset 762 for trunk/lib


Ignore:
Timestamp:
Feb 24, 2022 9:37:52 PM (2 years ago)
Author:
anonymous
Message:

Redirect if requesting login.php when already logged-in. Remove depreciated method usage.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/App.inc.php

    r752 r762  
    341341     * @access  public
    342342     * @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.
    343344     * @return  mixed               Parameter value, or null if not existing.
    344345     */
    345     public function getParam($param=null)
     346    public function getParam($param=null, $default=null)
    346347    {
    347348        if ($param === null) {
     
    350351            return $this->_params[$param];
    351352        } else {
    352             return null;
     353            return $default;
    353354        }
    354355    }
Note: See TracChangeset for help on using the changeset viewer.