Commits

Wolfgang Scherer committed 4d96cfc

index.php: cut'n'paste error fixed.

Comments (0)

Files changed (2)

     // raw message
     $form[] = sprintf('<span class="label">%s<sup>*</sup>:</span>', get_text('message'));
     $form[] = (
-        '<textarea name="body" cols="56" rows="'.$text_rows.'"'
+        '<textarea name="message" cols="56" rows="'.$text_rows.'"'
         .' style="vertical-align: top; width: 440px;">' . htmlspecialchars($vacation_msg, ENT_NOQUOTES, "UTF-8") . '</textarea><br />');
 
     $form[] = '<span class="label">&nbsp;</span>';
         }
         $headers[] = $line;
     }
+    $body = implode($lines, "\n");
 
-    $body = implode($lines, "\n");
+    global $_debug;
+    if ( $_debug ) {
+        echo "<pre>\n";
+        echo "--------------------------------------------------\n";
+        echo "headers\n";
+        echo "--------------------------------------------------\n";
+        var_dump($headers);
+        echo "--------------------------------------------------\n";
+        echo "body\n";
+        echo "--------------------------------------------------\n";
+        var_dump($body);
+        echo "</pre>\n";
+    }
+
     return Array($headers, $body);
 }