本文整理汇总了PHP中JoomFishManager::getCfg方法的典型用法代码示例。如果您正苦于以下问题:PHP JoomFishManager::getCfg方法的具体用法?PHP JoomFishManager::getCfg怎么用?PHP JoomFishManager::getCfg使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类JoomFishManager
的用法示例。
在下文中一共展示了JoomFishManager::getCfg方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: JoomFishManager
$languageRoot .= '/administrator';
}
$language = JoomlaTuneLanguage::getInstance();
$language->load('com_jcomments', $languageRoot, $lang);
$joomfish = $mosConfig_absolute_path . '/components/com_joomfish/joomfish.php';
if (!class_exists('JText')) {
$joomfish_class = $mosConfig_absolute_path . '/administrator/components/com_joomfish/joomfish.class.php';
$joomfish_language = $mosConfig_absolute_path . '/administrator/components/com_joomfish/libraries/joomla/language.php';
// small hack for JoomFish 1.8.2+ on Joomla 1.0.x
if (is_file($joomfish) && is_file($joomfish_language)) {
include_once $joomfish_class;
include_once $joomfish_language;
if (class_exists('JLanguageHelper')) {
if (isset($mainframe) && $mainframe->isAdmin()) {
$jfm = new JoomFishManager($mosConfig_absolute_path . '/administrator/components/com_joomfish');
$adminLang = strtolower($jfm->getCfg('componentAdminLang'));
$lng = JLanguageHelper::getLanguage($adminLang);
} else {
$lng = JLanguageHelper::getLanguage();
}
if (is_array($lng->_strings) && is_array($language->languages[$lang])) {
$lng->_strings = array_merge($lng->_strings, $language->languages[$lang]);
}
}
} else {
require_once JCOMMENTS_LIBRARIES . '/joomlatune/joomla/jtext.php';
}
} else {
if (class_exists('JLanguageHelper')) {
// small hack for JoomFish 1.8.2+ on Joomla 1.0.x
$lng = JLanguageHelper::getLanguage();