Revision 1091
Added by Matthias over 15 years ago
template.inc | ||
---|---|---|
8 | 8 |
* (C) Copyright 1999-2000 NetUSE GmbH |
9 | 9 |
* Kristian Koehntopp |
10 | 10 |
* |
11 |
* $Id: template.inc,v 1.15 2004/07/23 20:36:29 layne_weathers Exp $
|
|
11 |
* $Id$ |
|
12 | 12 |
* |
13 | 13 |
*/ |
14 | 14 |
|
... | ... | |
653 | 653 |
* @return false |
654 | 654 |
* @see parse |
655 | 655 |
*/ |
656 |
function pparse($target, $varname, $append = false) {
|
|
656 |
function pparse($target, $varname, $append = false, $clear = true) { // added $clear: whether to delete undefined vars or not (needed for wb-module code) - thorn
|
|
657 | 657 |
if ($this->debug & 4) { |
658 | 658 |
echo "<p><b>pparse:</b> passing parameters to parse...</p>\n"; |
659 | 659 |
} |
660 |
print $this->finish($this->parse($target, $varname, $append)); |
|
661 |
return false; |
|
660 |
if(!$clear) { |
|
661 |
$unknowns = $this->unknowns; |
|
662 |
$this->set_unknowns('keep'); |
|
663 |
print $this->finish($this->parse($target, $varname, $append)); |
|
664 |
$this->set_unknowns($unknowns); |
|
665 |
} else { |
|
666 |
print $this->finish($this->parse($target, $varname, $append)); |
|
667 |
} |
|
668 |
return false; |
|
662 | 669 |
} |
663 | 670 |
|
664 | 671 |
|
665 | 672 |
Also available in: Unified diff
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