mirror of
https://github.com/e107inc/e107.git
synced 2025-08-01 04:10:38 +02:00
News: Wrong language include path
This commit is contained in:
@@ -6,24 +6,24 @@ $cacheString = 'nq_news_categories_menu_'.preg_replace('#[^\w]#', '', $parm);
|
|||||||
$cached = e107::getCache()->retrieve($cacheString);
|
$cached = e107::getCache()->retrieve($cacheString);
|
||||||
if(false === $cached)
|
if(false === $cached)
|
||||||
{
|
{
|
||||||
e107::includeLan(e_PLUGIN.'news/languages'.e_LANGUAGE.'.php');
|
e107::includeLan(e_PLUGIN.'news/languages/'.e_LANGUAGE.'.php');
|
||||||
|
|
||||||
parse_str($parm, $parms);
|
parse_str($parm, $parms);
|
||||||
$ctree = e107::getObject('e_news_category_tree', null, e_HANDLER.'news_class.php');
|
$ctree = e107::getObject('e_news_category_tree', null, e_HANDLER.'news_class.php');
|
||||||
|
|
||||||
//TODO real template, menu parameters
|
//TODO real template, menu parameters
|
||||||
$sc_style['NEWS_CATEGORY_NEWS_COUNT']['pre'] = '(';
|
$sc_style['NEWS_CATEGORY_NEWS_COUNT']['pre'] = '(';
|
||||||
$sc_style['NEWS_CATEGORY_NEWS_COUNT']['post'] = ')';
|
$sc_style['NEWS_CATEGORY_NEWS_COUNT']['post'] = ')';
|
||||||
|
|
||||||
$template = array();
|
$template = array();
|
||||||
$template['item'] = '
|
$template['item'] = '
|
||||||
<img src="'.THEME_ABS.'images/bullet2.gif" alt="bullet" class="icon" /> <a class="e-menu-link newscats'.$active.'" href="{NEWS_CATEGORY_URL}">{NEWS_CATEGORY_TITLE} {NEWS_CATEGORY_NEWS_COUNT}</a>
|
<img src="'.THEME_ABS.'images/bullet2.gif" alt="bullet" class="icon" /> <a class="e-menu-link newscats'.$active.'" href="{NEWS_CATEGORY_URL}">{NEWS_CATEGORY_TITLE} {NEWS_CATEGORY_NEWS_COUNT}</a>
|
||||||
';
|
';
|
||||||
$template['separator'] = '<br />';
|
$template['separator'] = '<br />';
|
||||||
|
|
||||||
//always return
|
//always return
|
||||||
$parms['return'] = true;
|
$parms['return'] = true;
|
||||||
|
|
||||||
$cached = $ctree->loadActive()->render($parms, true, $template);
|
$cached = $ctree->loadActive()->render($parms, true, $template);
|
||||||
e107::getCache()->set($cacheString, $cached);
|
e107::getCache()->set($cacheString, $cached);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user