public static function getCurrent() { global $cookie; if (!self::$current) { if (isset($cookie->id_currency) and $cookie->id_currency) { self::$current = new Currency((int) $cookie->id_currency); } else { self::$current = new Currency((int) Configuration::get('PS_CURRENCY_DEFAULT')); } } return self::$current; }
public static function getCurrent() { global $cookie; if (!self::$current) { if (isset($cookie->id_currency) && $cookie->id_currency) { self::$current = new Currency((int) $cookie->id_currency); } else { self::$current = new Currency((int) _PS_CURRENCY_DEFAULT_); } } return self::$current; }