hook folderListItem has new parameter

This commit is contained in:
Uwe Steinmann 2020-03-05 09:11:15 +01:00
parent 92216112a4
commit d5ce0f8fe9

View File

@ -359,7 +359,7 @@ $('body').on('click', '.order-btn', function(ev) {
foreach($subFolders as $subFolder) {
if(!$maxItemsPerPage || $i < $maxItemsPerPage) {
$txt = $this->callHook('folderListItem', $subFolder, 'viewfolder');
$txt = $this->callHook('folderListItem', $subFolder, false, 'viewfolder');
if(is_string($txt))
echo $txt;
else {
@ -467,7 +467,7 @@ $('body').on('click', '.order-btn', function(ev) {
$j = 0; // counts only returned entries
foreach($subFolders as $subFolder) {
if($i >= $offset && $j < $limit) {
$txt = $this->callHook('folderListItem', $subFolder, 'viewfolder');
$txt = $this->callHook('folderListItem', $subFolder, false, 'viewfolder');
if(is_string($txt))
$content .= $txt;
else {