Multilingual Plugin, multiple Categories: Error in preview

Found a bug? Tell us!!
Post Reply
stephanbrunker
Regular
Posts: 23
Joined: Sat Nov 25, 2017 12:08 am

Multilingual Plugin, multiple Categories: Error in preview

Post by stephanbrunker »

My blog is bilingual, and such are my categories. If i create an article which in more than one category, i get an error in the preview window:
s9y-10.JPG
s9y-10.JPG (70.23 KiB) Viewed 4660 times
That error is in the last line out of this smarty generated content:

Code: Select all

foreach ($_from as $_smarty_tpl->tpl_vars["entry_category"]->value) {
$_smarty_tpl->tpl_vars["entry_category"]->_loop = true;
$_smarty_tpl->tpl_vars['__foreach_categories']->value['iteration']++;
$_smarty_tpl->tpl_vars['__foreach_categories']->value['last'] = $_smarty_tpl->tpl_vars['__foreach_categories']->value['iteration'] == $_smarty_tpl->tpl_vars['__foreach_categories']->value['total'];
$foreach_entry_category_Sav = $_smarty_tpl->tpl_vars["entry_category"];
?><a href="<?php echo $_smarty_tpl->tpl_vars['entry_category']->value['category_link'];?>
"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['multilingual_lang'][0][0]->strip_langs($_smarty_tpl->tpl_vars['entry_category']->value['category_name']);?>
It looks like there is perhaps one zero line too much, that the strip_langs then is called for zero.
Post Reply