[phplib] Bug fixes for template.inc and documentation-4.html From: Brownridge, Tom (Brownridge <email protected>)
Date: 07/13/00

This effects the template class if you are using set_block() or if you
really care about documentation.

1) template.inc had an error in set_block() with the call to preg_replace()

    # The way it was...
    # $str = preg_replace($reg, "{$name}", $str);

    # The way it should be...
    $str = preg_replace($reg, "\{$name}", $str);

2) documentation-4.html had a bug in one of the example scripts, in the php
file that pertains to the template example (Section 4.2, way at the bottom).
What should have been typed as "OUT" had been typed "out". The correct code
follows...

  # build out from box, then build out from page...
  # $t->parse("out", array("box", "page"));
  $t->parse("OUT", array("box", "page"));

  # finish out and print it.
  # $t->p("out");
  $t->p("OUT");

--- Tom Brownridge