From 93235cc1b5c89d2869eb26dbf80f9f3fb4832694 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Fri, 14 May 2010 08:00:30 +0000 Subject: [PATCH] Add php template class --- htdocs/core/class/template.class.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/htdocs/core/class/template.class.php b/htdocs/core/class/template.class.php index d38b00c0835..b130775ebf0 100644 --- a/htdocs/core/class/template.class.php +++ b/htdocs/core/class/template.class.php @@ -142,7 +142,7 @@ class Template */ function assignTag($tag,$id,$tag_array) { - if(!$this->cache_activate or $this->cache_isExpired) + if(!$this->cache_activate || $this->cache_isExpired) { if( $this->checkArray($tag_array) ) { @@ -187,7 +187,7 @@ class Template */ function assignInclude($id,$file="") { - if(!$this->cache_activate or $this->cache_isExpired) + if(!$this->cache_activate || $this->cache_isExpired) { if( empty($file) ) { @@ -213,7 +213,7 @@ class Template */ function htmlSelect($name,$array,$selected="",$htmlAttribut="") { - if(!$this->cache_activate or $this->cache_isExpired) + if(!$this->cache_activate || $this->cache_isExpired) { //on test la balise avec l'option selected $select = $this->findTag("HTMLSELECT",$name,"SELECTED"); @@ -245,7 +245,7 @@ class Template */ function view() { - if(!$this->cache_activate or $this->cache_isExpired) + if(!$this->cache_activate || $this->cache_isExpired) { $this->assignAutoInclude(); if(!$this->debug)