function getLocalizedFavicon() { $faviconArray = $this->getSetting('favicon'); foreach (array(AppLocale::getLocale(), AppLocale::getPrimaryLocale()) as $locale) { if (isset($faviconArray[$locale])) { return $faviconArray[$locale]; } } return null; }