/** * Load language file of xml type * * @param string $path Path of the language file * @return string file name */ function _loadXmlLang($path) { if (!$path) { return; } $oXmlLangParser = new XmlLangParser($path . (substr_compare($path, '/', -1) !== 0 ? '/' : '') . 'lang.xml', $this->lang_type); return $oXmlLangParser->compile(); }
/** * Load language file of xml type * * @param string $path Path of the language file * @return string file name */ function _loadXmlLang($path) { if (substr($path, -1) != '/') { $path .= '/'; } $file = $path . 'lang.xml'; $oXmlLangParser = new XmlLangParser($file, $this->lang_type); $file = $oXmlLangParser->compile(); return $file; }