- use $dms->contentDir instead of $settings->_contentDir where ever possible

This commit is contained in:
steinm 2011-01-28 07:38:39 +00:00
parent e14323478d
commit 663ffba1c9

View File

@ -27,20 +27,18 @@ if (!$user->isAdmin()) {
UI::exitError(getMLText("admin_tools"),getMLText("access_denied"));
}
function removeFolderFiles($folder)
{
global $settings;
function removeFolderFiles($folder) {
global $dms;
$documents = $folder->getDocuments();
foreach ($documents as $document)
LetoDMS_Core_File::removeDir($settings->_contentDir . $document->getDir());
LetoDMS_Core_File::removeDir($dms->contentDir . $document->getDir());
$subFolders = $folder->getSubFolders();
foreach ($subFolders as $folder)
removeFolderFiles($folder);
return true;
}
@ -62,5 +60,4 @@ if (!removeFolderFiles($folder)) {
add_log_line();
header("Location:../out/out.BackupTools.php");
?>