[pLog-svn] r749 - plog/trunk/class/template
oscar at devel.plogworld.net
oscar at devel.plogworld.net
Tue Jan 18 15:05:12 GMT 2005
Author: oscar
Date: 2005-01-18 15:05:11 +0000 (Tue, 18 Jan 2005)
New Revision: 749
Modified:
plog/trunk/class/template/templateservice.class.php
Log:
fixed a stupid bug, replaced File::isDir with File::exists and this magically solved issue http://bugs.plogworld.net/view.php?id=151
Modified: plog/trunk/class/template/templateservice.class.php
===================================================================
--- plog/trunk/class/template/templateservice.class.php 2005-01-17 17:37:18 UTC (rev 748)
+++ plog/trunk/class/template/templateservice.class.php 2005-01-18 15:05:11 UTC (rev 749)
@@ -96,9 +96,11 @@
$t->cache_dir = $templateTmpFolder;
$t->compile_dir = $templateTmpFolder;
+ $this->log->debug("checking if $templateTmpFolder exists!");
+
// and now make sure that there is a folder where we can save
// our rendered templates
- if( !File::isDir( $templateTmpFolder )) {
+ if( !File::exists( $templateTmpFolder )) {
$this->log->debug( "creating temporary folder $templateTmpFolder" );
File::createDir( $templateTmpFolder );
}
@@ -251,7 +253,7 @@
$blogTmpFolder = $tmpFolder;
else {
$blogTmpFolder = $tmpFolder.'/'.$blogInfo->getId();
- if( !File::isDir( $blogTmpFolder )) {
+ if( !File::exists( $blogTmpFolder )) {
$this->log->debug( "creating temporary folder $blogTmpFolder" );
File::createDir( $blogTmpFolder );
}
More information about the pLog-svn
mailing list