Function smarty_postfilter_switch
Filter the template after it is generated to fix switch bugs. Remove any spaces after the 'switch () {' code and before the first case. Any tabs or spaces for layout would cause php errors witch this reged will fix.
Located at
tpl/smarty/plugins/compiler.switch.php
Parameters summary
string |
$compiled |
|
|
$template |
$$template |
Return value summary
string
|
string |