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

@@ -89,7 +89,7 @@ function smarty_function_mailto($params, &$smarty)
$js_encode .= '%' . bin2hex($string[$x]);
}
echo '<SCRIPT language="javascript">eval(unescape(\''.$js_encode.'\'))</SCRIPT>';
return '<SCRIPT language="javascript">eval(unescape(\''.$js_encode.'\'))</SCRIPT>';
} elseif ($encode == 'hex') {
@@ -109,11 +109,11 @@ function smarty_function_mailto($params, &$smarty)
$text_encode .= '&#x' . bin2hex($text[$x]).';';
}
echo '<a href="mailto:'.$address_encode.'" '.$extra.'>'.$text_encode.'</a>';
return '<a href="mailto:'.$address_encode.'" '.$extra.'>'.$text_encode.'</a>';
} else {
// no encoding
echo '<a href="mailto:'.$address.'" '.$extra.'>'.$text.'</a>';
return '<a href="mailto:'.$address.'" '.$extra.'>'.$text.'</a>';
}