protected static function getFinalTemplateName($template, $module_file = null)
 {
     if (!isset($module_file)) {
         $module_file = self::getModuleAndTemplate($template);
     }
     if (!TBGContext::isReadySetup() || ($template_name = TBGContext::getI18n()->hasTranslatedTemplate($template, true)) === false) {
         $template_name = THEBUGGENIE_MODULES_PATH . $module_file['module'] . DS . 'templates' . DS . "_{$module_file['file']}.inc.php";
     }
     return $template_name;
 }
Exemplo n.º 2
0
 public static function getTBGname()
 {
     try {
         if (!TBGContext::isReadySetup()) {
             return 'The Bug Genie';
         }
         $name = self::get(self::SETTING_TBG_NAME);
         if (!self::isHeaderHtmlFormattingAllowed()) {
             $name = htmlspecialchars($name, ENT_COMPAT, TBGContext::getI18n()->getCharset());
         }
         return $name;
     } catch (Exception $e) {
         return 'The Bug Genie';
     }
 }