Show
Ignore:
Timestamp:
02/26/06 13:28:19 (3 years ago)
Author:
schst
Message:

Fixed bug #150: Notice when enabling the template cache

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/patTemplate/Stat.php

    r208 r423  
    6464        $this->_options     =   $options; 
    6565    } 
     66 
     67   /** 
     68    * get the template root for this class 
     69    * 
     70    * @access  public 
     71    * @return  string 
     72    */ 
     73    function getTemplateRoot() 
     74    { 
     75        if (!isset($this->_options['root'])) { 
     76            return null; 
     77        } 
     78        if (isset($this->_options['root'][$this->_name])) { 
     79            return $this->_options['root'][$this->_name]; 
     80        } 
     81        if (isset($this->_options['root']['__default'])) { 
     82            return $this->_options['root']['__default']; 
     83        } 
     84        return null; 
     85    } 
    6686} 
    6787?>