I just upgraded a site from cmsms 1.12.1 to 2.1.5.
I found out, that i had to replace
{$page_lang = substr($cgsimple->get_root_alias(),0,2)}
with
{$page_lang = substr($cgsimple::get_root_alias(),0,2)}
But this is not the end.
When I just cleared the cache, I get the following error message:
Code: Select all
ERROR: at line 176 in file /home/www/lib/smarty/sysplugins/smarty_internal_templatebase.php:
Invalid compiled template for 'tpl_top:2'
Code: Select all
parse error: syntax error, unexpected '::' (T_PAAMAYIM_NEKUDOTAYIM) in /home/www/tmp/templates_c/ceb3b38b3d624997db99371a7a2661b864f38ed5.tpl_top.2.php on line 35
Code: Select all
$_smarty_tpl->tpl_vars['page_lang']->value = substr($_smarty_tpl->tpl_vars['cgsimple']->value::get_root_alias(),0,2); $_smarty_tpl->tpl_vars['page_lang']->nocache = null; $_smarty_tpl->tpl_vars['page_lang']->scope = 3;