Index: trunk/CHANGELOG
===================================================================
--- trunk/CHANGELOG	(revision 568)
+++ trunk/CHANGELOG	(revision 569)
@@ -16,7 +16,8 @@
 !	Added support to configure the mailer settings via the backend
 19-Jan-2008 Matthias Gallas
 #	Fixed bug in news modul with missing variable PAGE_DIRECTORY
-19-Jan-2008 Thomas Hornik
+19-Jan-2008 Thomas Hornik
+# Module code: curly backets get deleted by pparse() from phplib. fixed
 +	Module menu_link: added dropdown-listbox to select anchor
 !	upgrade-script: added code to convert old menu_links to new ones (partly)
 18-Jan-2008 Matthias Gallas
Index: trunk/wb/include/phplib/template.inc
===================================================================
--- trunk/wb/include/phplib/template.inc	(revision 568)
+++ trunk/wb/include/phplib/template.inc	(revision 569)
@@ -648,11 +648,14 @@
   * @return    false
   * @see       parse
   */
-  function pparse($target, $varname, $append = false) {
+  function pparse($target, $varname, $append = false, $clear = true) { // added $clear: whether to delete undefined vars or not (needed for wb-module code) - thorn
     if ($this->debug & 4) {
       echo "<p><b>pparse:</b> passing parameters to parse...</p>\n";
     }
-    print $this->finish($this->parse($target, $varname, $append));
+		if($clear)
+			print $this->finish($this->parse($target, $varname, $append));
+		else
+			print $this->parse($target, $varname, $append);
     return false;
   }
 
Index: trunk/wb/modules/code/modify.php
===================================================================
--- trunk/wb/modules/code/modify.php	(revision 568)
+++ trunk/wb/modules/code/modify.php	(revision 569)
@@ -47,6 +47,6 @@
 
 // Parse template object
 $template->parse('main', 'main_block', false);
-$template->pparse('output', 'page');
+$template->pparse('output', 'page', false, false);
 
 ?>
\ No newline at end of file
