Example #1
0
 public static function getSiteHeaderName()
 {
     try {
         if (!Context::isReadySetup()) {
             return 'The Bug Genie';
         }
         $name = self::get(self::SETTING_TBG_NAME);
         if (!self::isHeaderHtmlFormattingAllowed()) {
             $name = htmlspecialchars($name, ENT_COMPAT, Context::getI18n()->getCharset());
         }
         return $name;
     } catch (\Exception $e) {
         return 'The Bug Genie';
     }
 }