mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-14 13:42:04 +00:00
more reasonable check for docs and folders
This commit is contained in:
parent
1c359cb701
commit
83e888b9c9
|
@ -300,36 +300,34 @@ function folderSelected(id, name) {
|
||||||
print "<th>".getMLText("action")."</th>\n";
|
print "<th>".getMLText("action")."</th>\n";
|
||||||
print "</tr>\n</thead>\n<tbody>\n";
|
print "</tr>\n</thead>\n<tbody>\n";
|
||||||
}
|
}
|
||||||
}
|
|
||||||
else printMLText("empty_folder_list");
|
|
||||||
|
|
||||||
|
foreach($subFolders as $subFolder) {
|
||||||
foreach($subFolders as $subFolder) {
|
$txt = $this->callHook('folderListItem', $subFolder, 'viewfolder');
|
||||||
$txt = $this->callHook('folderListItem', $subFolder);
|
if(is_string($txt))
|
||||||
if(is_string($txt))
|
echo $txt;
|
||||||
echo $txt;
|
else {
|
||||||
else {
|
echo $this->folderListRow($subFolder);
|
||||||
echo $this->folderListRow($subFolder);
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
foreach($documents as $document) {
|
foreach($documents as $document) {
|
||||||
$document->verifyLastestContentExpriry();
|
$document->verifyLastestContentExpriry();
|
||||||
$txt = $this->callHook('documentListItem', $document, $previewer, 'viewfolder');
|
$txt = $this->callHook('documentListItem', $document, $previewer, 'viewfolder');
|
||||||
if(is_string($txt))
|
if(is_string($txt))
|
||||||
echo $txt;
|
echo $txt;
|
||||||
else {
|
else {
|
||||||
echo $this->documentListRow($document, $previewer);
|
echo $this->documentListRow($document, $previewer);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if ((count($subFolders) > 0)||(count($documents) > 0)) {
|
|
||||||
$txt = $this->callHook('folderListFooter', $folder);
|
$txt = $this->callHook('folderListFooter', $folder);
|
||||||
if(is_string($txt))
|
if(is_string($txt))
|
||||||
echo $txt;
|
echo $txt;
|
||||||
else
|
else
|
||||||
echo "</tbody>\n</table>\n";
|
echo "</tbody>\n</table>\n";
|
||||||
|
|
||||||
}
|
}
|
||||||
|
else printMLText("empty_folder_list");
|
||||||
|
|
||||||
echo "</div>\n"; // End of right column div
|
echo "</div>\n"; // End of right column div
|
||||||
echo "</div>\n"; // End of div around left and right column
|
echo "</div>\n"; // End of div around left and right column
|
||||||
|
|
Loading…
Reference in New Issue
Block a user