Smart syntax change after Upgrade
Posted: Thu Sep 26, 2024 10:03 am
I noticed that after upgrading from CMSMS 2.2.15 to 2.2.21 I had to change a smarty syntax line.
In CMSMS 2.2.15 I was able to use :
or
But in CMSMS 2.2.21 this generated a 501 error
I had to change it to
I use this code to check if a page has children.
Is this a know change or was my initial syntax wrong ?
In CMSMS 2.2.15 I was able to use :
Code: Select all
{$children=cgsimple::get_children()}
{if count($children) > 0}
Code: Select all
{$children=cgsimple::get_children()}
{if $children|count > 0}
I had to change it to
Code: Select all
{$children=cgsimple::get_children()}
{if cgsimple::has_children()}
Is this a know change or was my initial syntax wrong ?