cvs: smarty /libs/core core.rmdir.php
"Messju Mohr" <[email protected]>
| Newsgroups | gmane.comp.php.cvs.smarty |
|---|---|
| Message-ID | <cvsmessju1062146991@cvsserver> |
messju Fri Aug 29 04:49:51 2003 EDT
Modified files:
/smarty/libs/core core.rmdir.php
Log:
made rmdir a bit more optimistic. especially it now removes
directories correctly that where created accidently by "safe_mode=On
&& $use_sub_dirs=true"
Index: smarty/libs/core/core.rmdir.php
diff -u smarty/libs/core/core.rmdir.php:1.3 smarty/libs/core/core.rmdir.php:1.4
--- smarty/libs/core/core.rmdir.php:1.3 Sat Jun 21 23:13:25 2003
+++ smarty/libs/core/core.rmdir.php Fri Aug 29 04:49:51 2003
@@ -40,18 +40,14 @@
}
}
}
-
closedir($_handle);
+ }
- if ($params['level']) {
- @rmdir($params['dirname']);
- }
-
- return true;
+ if ($params['level']) {
+ return @rmdir($params['dirname']);
+ }
+ return (bool)$_handle;
- } else {
- return false;
- }
}
/* vim: set expandtab: */
--
Smarty CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php