private function checkValidCurrency($currency) { if (!in_array($currency, array_keys($this->getCurrencyList()))) { throw new Exception(Piwik::translate('SitesManager_ExceptionInvalidCurrency', array($currency, "USD, EUR, etc."))); } }