mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 15:32:13 +00:00
- use $dms->contentDir instead of $settings->_contentDir where ever possible
This commit is contained in:
parent
e14323478d
commit
663ffba1c9
|
@ -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");
|
||||
|
||||
?>
|
||||
|
|
Loading…
Reference in New Issue
Block a user