Revision 569
Added by thorn almost 18 years ago
| trunk/CHANGELOG | ||
|---|---|---|
| 16 | 16 |
! Added support to configure the mailer settings via the backend |
| 17 | 17 |
19-Jan-2008 Matthias Gallas |
| 18 | 18 |
# Fixed bug in news modul with missing variable PAGE_DIRECTORY |
| 19 |
19-Jan-2008 Thomas Hornik |
|
| 19 |
19-Jan-2008 Thomas Hornik |
|
| 20 |
# Module code: curly backets get deleted by pparse() from phplib. fixed |
|
| 20 | 21 |
+ Module menu_link: added dropdown-listbox to select anchor |
| 21 | 22 |
! upgrade-script: added code to convert old menu_links to new ones (partly) |
| 22 | 23 |
18-Jan-2008 Matthias Gallas |
| trunk/wb/include/phplib/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 |
|
| trunk/wb/modules/code/modify.php | ||
|---|---|---|
| 47 | 47 |
|
| 48 | 48 |
// Parse template object |
| 49 | 49 |
$template->parse('main', 'main_block', false);
|
| 50 |
$template->pparse('output', 'page');
|
|
| 50 |
$template->pparse('output', 'page', false, false);
|
|
| 51 | 51 |
|
| 52 | 52 |
?> |
Also available in: Unified diff
Module code: curly backets get deleted by pparse() from phplib. fixes #553