irm/lib/Config.php
/** Retrieve the current value of the specified system config variable.
     */
Retrieve the current value of the specified system config variable.
Retrieve the current value of the specified system config variable .
static function Get($var)
    {
        global $DEFAULT_CONFIG;
        if (!array_intersect(array_keys($DEFAULT_CONFIG), array($var)))
        {
            return NULL;
        }
        $DB = Config::Database();
        $val = $DB->getOne5('SELECT value FROM config WHERE variable=:var', array('var' => $var));
        return $val === NULL ? $DEFAULT_CONFIG[$var] : $val;
    }
static function Get ( $ var ) { global $ DEFAULT_CONFIG ; if ( ! array_intersect ( array_keys ( $ DEFAULT_CONFIG ) , array ( $ var ) ) ) { return NULL ; } $ DB = Config :: Database ( ) ; $ val = $ DB -> getOne5 ( 'SELECT value FROM config WHERE variable=:var' , array ( 'var' => $ var ) ) ; return $ val === NULL ? $ DEFAULT_CONFIG [ $ var ] : $ val ; }
Retrieve the current value of the specified system config variable.
Retrieve the current value of the specified system config variable .