[PHPLIB-DEV] cvs commit From: kk (phplib-dev <email protected>)
Date: 11/01/99

From: kk
Date: Mon Nov 1 06:52:41 1999
Modified files:
      php-lib/php/template.inc

Log message:
Little bugfixing.

Index: php-lib/php/template.inc
diff -u php-lib/php/template.inc:1.8 php-lib/php/template.inc:1.9
--- php-lib/php/template.inc:1.8 Sun Oct 31 21:06:46 1999
+++ php-lib/php/template.inc Mon Nov 1 06:52:11 1999
@@ -5,7 +5,7 @@
  * (C) Copyright 1999 NetUSE GmbH
  * Kristian Koehntopp
  *
- * $Id: template.inc,v 1.8 1999/10/31 20:06:46 kk Exp $
+ * $Id: template.inc,v 1.9 1999/11/01 05:52:11 kk Exp $
  *
  */
 
@@ -56,13 +56,13 @@
    * root: array with template directories.
    */
   function set_root($root) {
- if (!is_array($root) {
+ if (!is_array($root)) {
       if (!is_dir($root)) {
         $this->halt("set_root (scalar): $root is not a directory.");
         return false;
       }
       
- $this->root = array($root);
+ $this->root[] = $root
 
     } else {
       reset($root);
@@ -72,7 +72,7 @@
           return false;
         }
         
- $this->root = $root;
+ $this->root[] = $v;
       }
     }
 

-
PHPLIB Developers Mailing List. Send messages to <phplib-dev <email protected>>.
To unsubscribe, send "unsubscribe" to <phplib-dev-request <email protected>> in
the body, not the subject, of your message.