JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
added dwt_append_raw(), format_filename() converts ^[.-] to _ instead of removing...
[wfpl.git] / dwt.php
diff --git a/dwt.php b/dwt.php
index 78daa54..d07abd8 100644 (file)
--- a/dwt.php
+++ b/dwt.php
@@ -61,15 +61,19 @@ function dwt_find($name) {
        return dwt_find_raw("<!-- TemplateBeginEditable name=\"$name\" -->");
 }
 
-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("<!-- TemplateBeginEditable name=\"$name\" -->", $value);
+}
+
 function dwt_output($filename = null) {
        if($filename !== null) {
                dwt_load($filename);