Changeset 935

Show
Ignore:
Timestamp:
09/24/07 15:47:31 (1 year ago)
Author:
mikey
Message:

fixed include template: use correct template path

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/main/php/net/stubbles/websites/memphis/stubMemphisIncludeTemplatePageElement.php

    r888 r935  
    6161        } 
    6262         
    63         if (file_exists($this->source) == false) { 
    64             throw new stubIOException('The template ' . $this->source . ' does not exist or could not be read.'); 
     63        $tmplPath = stubRegistry::getConfig('net.stubbles.websites.memphis.templateDir', stubConfig::getPagePath() . '/../templates'); 
     64        if (file_exists($tmplPath . '/' . $this->source) == false) { 
     65            throw new stubIOException('The template ' . $tmplPath . '/' . $this->source . ' does not exist or could not be read.'); 
    6566        } 
    6667