Revision 569
Added by thorn almost 18 years ago
| template.inc | ||
|---|---|---|
| 648 | 648 |
* @return false |
| 649 | 649 |
* @see parse |
| 650 | 650 |
*/ |
| 651 |
function pparse($target, $varname, $append = false) {
|
|
| 651 |
function pparse($target, $varname, $append = false, $clear = true) { // added $clear: whether to delete undefined vars or not (needed for wb-module code) - thorn
|
|
| 652 | 652 |
if ($this->debug & 4) {
|
| 653 | 653 |
echo "<p><b>pparse:</b> passing parameters to parse...</p>\n"; |
| 654 | 654 |
} |
| 655 |
print $this->finish($this->parse($target, $varname, $append)); |
|
| 655 |
if($clear) |
|
| 656 |
print $this->finish($this->parse($target, $varname, $append)); |
|
| 657 |
else |
|
| 658 |
print $this->parse($target, $varname, $append); |
|
| 656 | 659 |
return false; |
| 657 | 660 |
} |
| 658 | 661 |
|
Also available in: Unified diff
Module code: curly backets get deleted by pparse() from phplib. fixes #553