mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-03-11 16:35:38 +00:00
- getUser(), getFolder(), getDocument() are now methods of LetoDMS_DMS
This commit is contained in:
parent
c522f28497
commit
f81a7063df
|
@ -168,7 +168,7 @@ if (!isset($_GET["targetidform2"]) || !is_numeric($_GET["targetidform2"]) || int
|
|||
UI::exitError(getMLText("admin_tools"),getMLText("invalid_folder_id"));
|
||||
}
|
||||
$folderid = $_GET["targetidform2"];
|
||||
$folder = getFolder($folderid);
|
||||
$folder = $dms->getFolder($folderid);
|
||||
|
||||
if (!is_object($folder)) {
|
||||
UI::exitError(getMLText("admin_tools"),getMLText("invalid_folder_id"));
|
||||
|
|
|
@ -52,7 +52,7 @@ if (!isset($_GET["targetidform1"]) || !is_numeric($_GET["targetidform1"]) || int
|
|||
UI::exitError(getMLText("admin_tools"),getMLText("invalid_folder_id"));
|
||||
}
|
||||
$folderid = $_GET["targetidform1"];
|
||||
$folder = getFolder($folderid);
|
||||
$folder = $dms->getFolder($folderid);
|
||||
|
||||
if (!is_object($folder)) {
|
||||
UI::exitError(getMLText("admin_tools"),getMLText("invalid_folder_id"));
|
||||
|
|
|
@ -49,7 +49,7 @@ function add_folder_notify($folder,$userid,$recursefolder,$recursedoc)
|
|||
// recurse all folder's folders
|
||||
|
||||
$subFolders = $folder->getSubFolders();
|
||||
$subFolders = LetoDMS_DMS::filterAccess($subFolders, getUser($userid), M_READ);
|
||||
$subFolders = LetoDMS_DMS::filterAccess($subFolders, $dms->getUser($userid), M_READ);
|
||||
|
||||
foreach($subFolders as $subFolder)
|
||||
add_folder_notify($subFolder,$userid,$recursefolder,$recursedoc);
|
||||
|
|
|
@ -111,7 +111,7 @@ foreach ($entries as $entry){
|
|||
}
|
||||
|
||||
$folderid=substr($entry,strpos($entry,"_")+1);
|
||||
$folder=getFolder((int)$folderid);
|
||||
$folder=$dms->getFolder((int)$folderid);
|
||||
|
||||
print "<tr>\n";
|
||||
print "<td><a href=\"../op/op.Download.php?arkname=".$entry."\">".$entry."</a></td>\n";
|
||||
|
|
|
@ -114,7 +114,7 @@ function printDocumentNotificationList($ret,$deleteaction=true)
|
|||
print "<th>".getMLText("actions")."</th>\n";
|
||||
print "</tr></thead>\n<tbody>\n";
|
||||
foreach ($ret as $ID) {
|
||||
$doc = getDocument($ID);
|
||||
$doc = $dms->getDocument($ID);
|
||||
if (is_object($doc)) {
|
||||
$owner = $doc->getOwner();
|
||||
$latest = $doc->getLatestContent();
|
||||
|
|
Loading…
Reference in New Issue
Block a user