mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 19:04:27 +02:00
This commit is contained in:
@@ -31,13 +31,13 @@ class Smarty_Internal_Compile_Private_Modifier extends Smarty_Internal_CompileBa
|
||||
foreach ($_attr['modifierlist'] as $single_modifier) {
|
||||
preg_match_all('/(\'[^\'\\\\]*(?:\\\\.[^\'\\\\]*)*\'|"[^"\\\\]*(?:\\\\.[^"\\\\]*)*"|:|[^:]+)/', $single_modifier, $mod_array);
|
||||
$modifier = $mod_array[0][0];
|
||||
$i = 1;
|
||||
while (isset($mod_array[0][$i])) {
|
||||
unset($mod_array[0][$i]);
|
||||
$i = $i + 2;
|
||||
for ($i = 0, $count = count($mod_array[0]);$i < $count;$i++) {
|
||||
if ($mod_array[0][$i] == ':') {
|
||||
$mod_array[0][$i] = ',';
|
||||
}
|
||||
}
|
||||
$mod_array[0][0] = $output;
|
||||
$params = implode(",", $mod_array[0]);
|
||||
$params = implode('', $mod_array[0]);
|
||||
// check for registered modifier
|
||||
if (isset($compiler->smarty->registered_plugins['modifier'][$modifier])) {
|
||||
$function = $compiler->smarty->registered_plugins['modifier'][$modifier][0];
|
||||
|
Reference in New Issue
Block a user