X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=dwt.php;h=6cd2d664b4568cc1821434238fe45d2c7c02bef1;hb=9a9b08360777629b46e7b83bd4f5f091a249be21;hp=49fac824a81bd1ed08ff8aa8f7d5f3f0a7351412;hpb=3e4ada79d7082b23e1a4710758b951b609b8c9ed;p=wfpl.git diff --git a/dwt.php b/dwt.php index 49fac82..6cd2d66 100644 --- a/dwt.php +++ b/dwt.php @@ -61,15 +61,19 @@ function dwt_find($name) { return dwt_find_raw(""); } -function dwt_append($name, $value) { - $index = dwt_find($name); +function dwt_append_raw($name, $value) { + $index = dwt_find_raw($name); if($index !== null) { $GLOBALS['_dwt_values'][$index] .= $value; } else { - dwt_set($name, $value); + dwt_set_raw($name, $value); } } +function dwt_append($name, $value) { + dwt_append_raw("", $value); +} + function dwt_output($filename = null) { if($filename !== null) { dwt_load($filename);