made rmdir a bit more optimistic. especially it now removes

directories correctly that where created accidently by "safe_mode=On
&& $use_sub_dirs=true"
This commit is contained in:
messju
2003-08-29 08:49:51 +00:00
parent c29a2a9474
commit f210e32d1e

View File

@@ -40,18 +40,14 @@ function smarty_core_rmdir($params, &$smarty)
} }
} }
} }
closedir($_handle); closedir($_handle);
}
if ($params['level']) { if ($params['level']) {
@rmdir($params['dirname']); return @rmdir($params['dirname']);
} }
return (bool)$_handle;
return true;
} else {
return false;
}
} }
/* vim: set expandtab: */ /* vim: set expandtab: */