Changeset 623

Show
Ignore:
Timestamp:
10/29/07 17:06:04 (1 year ago)
Author:
laurentj
Message:

fixed bug #321: jtpl standalone does not work when an output type is specified, p=doubleface

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lib/jelix/tpl/jTplCompiler.class.php

    r611 r623  
    9595    public function compile($tplFile, $outputtype, $trusted){ 
    9696        $this->_sourceFile = $tplFile; 
     97        $this->outputType = ($outputtype==''?'html':$outputtype); 
    9798        $cachefile = JTPL_CACHE_PATH .$this->outputType.($trusted?'_t':'').'_'. basename($tplFile); 
    98         $this->outputType = ($outputtype==''?'html':$outputtype); 
    9999        $this->trusted = $trusted; 
    100100#else 
  • trunk/lib/jelix/tpl/jTplCompiler.class.php

    r611 r623  
    9595    public function compile($tplFile, $outputtype, $trusted){ 
    9696        $this->_sourceFile = $tplFile; 
     97        $this->outputType = ($outputtype==''?'html':$outputtype); 
    9798        $cachefile = JTPL_CACHE_PATH .$this->outputType.($trusted?'_t':'').'_'. basename($tplFile); 
    98         $this->outputType = ($outputtype==''?'html':$outputtype); 
    9999        $this->trusted = $trusted; 
    100100#else 
Download in other formats: Unified Diff Zip Archive