[pLog-svn] r543 - plog/trunk/class/template/templatesets
oscar at devel.plogworld.net
oscar at devel.plogworld.net
Sun Dec 19 14:33:33 GMT 2004
Author: oscar
Date: 2004-12-19 14:33:33 +0000 (Sun, 19 Dec 2004)
New Revision: 543
Modified:
plog/trunk/class/template/templatesets/templatesetstorage.class.php
Log:
if we try to remove a template set that points to a folder that does not exist anymore, then simply skip the folder removal part instead of showing an error and not doing anything.
Modified: plog/trunk/class/template/templatesets/templatesetstorage.class.php
===================================================================
--- plog/trunk/class/template/templatesets/templatesetstorage.class.php 2004-12-19 14:27:10 UTC (rev 542)
+++ plog/trunk/class/template/templatesets/templatesetstorage.class.php 2004-12-19 14:33:33 UTC (rev 543)
@@ -87,7 +87,14 @@
*/
function _removeFolder( $folderName )
{
- return File::deleteDir( $folderName, true );
+ // if the folder does not even exist, let's not even bother trying... It
+ // could be that it was manually removed by the user or something!
+ if( File::exists( $folderName ))
+ $result = File::deleteDir( $folderName, true );
+ else
+ $result = true;
+
+ return( $result );
}
/**
More information about the pLog-svn
mailing list