Index: trunk/CHANGELOG
===================================================================
--- trunk/CHANGELOG	(revision 1090)
+++ trunk/CHANGELOG	(revision 1091)
@@ -11,6 +11,9 @@
 ! = Update/Change
 
 ------------------------------------- 2.8.0 -------------------------------------
+23-July 2009 Matthias Gallas
+#	readded to phplib/template.inc $clear: whether to delete undefined vars or not
+	was already added in WB 2.7 but was deleted for unknown reasons
 22-July 2009 Matthias Gallas
 !	set Version to RC2
 !	small modification on german language file (ticket #746)
Index: trunk/wb/include/phplib/template.inc
===================================================================
--- trunk/wb/include/phplib/template.inc	(revision 1090)
+++ trunk/wb/include/phplib/template.inc	(revision 1091)
@@ -8,7 +8,7 @@
  * (C) Copyright 1999-2000 NetUSE GmbH
  *                    Kristian Koehntopp
  *
- * $Id: template.inc,v 1.15 2004/07/23 20:36:29 layne_weathers Exp $
+ * $Id$
  *
  */
 
@@ -653,12 +653,19 @@
   * @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));
-    return false;
+		if(!$clear) {
+			$unknowns = $this->unknowns;
+			$this->set_unknowns('keep');
+			print $this->finish($this->parse($target, $varname, $append));
+			$this->set_unknowns($unknowns);
+		} else {
+			print $this->finish($this->parse($target, $varname, $append));
+		}
+		return false;
   }
 
 

Property changes on: trunk/wb/include/phplib/template.inc
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
