update plugins to return values instead of echo, fix config file cache

to include global config variables in cache file
This commit is contained in:
mohrt
2003-01-08 17:34:45 +00:00
parent 2cad634805
commit b579c0f51d
26 changed files with 168 additions and 150 deletions

View File

@@ -42,8 +42,11 @@ function smarty_function_counter($params, &$smarty)
$smarty->assign($assign, $count[$name]);
}
if ($printval[$name])
echo $count[$name];
if ($printval[$name]) {
$retval = $count[$name];
} else {
$retval = null;
}
if (isset($skip))
$skipval[$name] = $skip;
@@ -59,6 +62,9 @@ function smarty_function_counter($params, &$smarty)
$count[$name] -= $skipval[$name];
else
$count[$name] += $skipval[$name];
return $retval;
}
/* vim: set expandtab: */