Re: [phplib] problem with templates From: Sven Rottenbiller (sven <email protected>)
Date: 06/24/00

Hy Brett,

in the file template.inc is a little error. You have to change a line in
the function loadfile:

befor:

  function loadfile($handle) {
    if ($this->varkeys[$handle] and !empty($this->varvals[$handle]))
      return true;

    if (!isset($this->file[$handle])) {
      $this->halt("loadfile: $handle is not a valid handle.");
      return false;
    }
    $filename = $this->filename($this->file[$handle]); <<<---
error here

after:

  function loadfile($handle) {
    if ($this->varkeys[$handle] and !empty($this->varvals[$handle]))
      return true;

    if (!isset($this->file[$handle])) {
      $this->halt("loadfile: $handle is not a valid handle.");
      return false;
    }
    $filename = $this->file[$handle];
<<<--- now it's better

I hope it will help you to fix your problem.

by

Sven Rottenbiller

---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>