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:

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

  

Also available in: Unified diff