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

@@ -22,13 +22,15 @@ function smarty_function_eval($params, &$this)
$this->_compile_template("evaluated template", $var, $source);
ob_start();
eval('?>' . $source);
$contents = ob_get_contents();
ob_end_clean();
if (!empty($assign)) {
ob_start();
eval('?>' . $source);
$this->assign($assign, ob_get_contents());
ob_end_clean();
$this->assign($assign, $contents);
} else {
eval('?>' . $source);
return $contents;
}
}