Project

General

Profile

« Previous | Next » 

Revision 875

Added by thorn about 16 years ago

Module code: curly backets get deleted by pparse() from phplib -> old fix in #569 wasn't that smart. Fixed.

View differences:

trunk/CHANGELOG
12 12

  
13 13
------------------------------------- 2.7.1 -------------------------------------
14 14
06-Nov-2008 Thomas Hornik
15
#	Module code: curly backets get deleted by pparse() from phplib -> old fix in #569 wasn't that smart. Fixed.
15 16
#	fixed some typos in DE language-file, added missing tab in search.php
16 17
02-Nov-2008 Thomas Hornik
17 18
!	news: added PAGE_SPACER to $page_title (creates e.g. title-32.php instead of title32.php)
trunk/wb/include/phplib/template.inc
653 653
  * @return    false
654 654
  * @see       parse
655 655
  */
656
  function pparse($target, $varname, $append = false, $clear = true) { // added $clear: whether to delete undefined vars or not (needed for wb-module code) - thorn
656
  function pparse($target, $varname, $append = false) {
657 657
    if ($this->debug & 4) {
658 658
      echo "<p><b>pparse:</b> passing parameters to parse...</p>\n";
659 659
    }
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;
660
    print $this->finish($this->parse($target, $varname, $append));
661
    return false;
669 662
  }
670 663

  
671 664

  
trunk/wb/modules/code/modify.php
46 46
						);
47 47

  
48 48
// Parse template object
49
$template->set_unknowns('keep');
49 50
$template->parse('main', 'main_block', false);
50
$template->pparse('output', 'page', false, false);
51
$template->pparse('output', 'page', false);
51 52

  
52 53
?>

Also available in: Unified diff