X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=dwt.php;h=d07abd843393e788dbef5022d96fba774e2ec645;hb=651c6826f68583dcd7c7ddfb5b02f14bcf2200d8;hp=78daa5443ce56be99b3e4ab1e7a9151b85e335f6;hpb=848c8a4d215f9cce1db0a7d37e733b5959b8210f;p=wfpl.git diff --git a/dwt.php b/dwt.php index 78daa54..d07abd8 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);