Skip to content

Commit

Permalink
[FIX]Imap quota: Fixing quota appears only once folders are expanded
Browse files Browse the repository at this point in the history
  • Loading branch information
Baraka24 committed Oct 8, 2024
1 parent 8837a80 commit af95438
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion modules/imap/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,6 @@ function format_imap_folder_section($folders, $id, $output_mod, $with_input = fa
$results .= '<li class="manage_folders_li"><i class="bi bi-gear-wide me-1"></i><a class="manage_folder_link" href="'.$manage.'">'.$output_mod->trans('Manage Folders').'</a></li>';
}

$results .= '</ul>';
return $results;
}}

Expand Down
3 changes: 2 additions & 1 deletion modules/imap/output_modules.php
Original file line number Diff line number Diff line change
Expand Up @@ -782,8 +782,9 @@ protected function output() {
$quota = $this->get('quota');
$quota_max = $this->get('quota_max');
if (!$folder && $quota) {
$res .= '<p class="quota_info"><div class="progress bg-secondary border"><div class="progress-bar bg-light" style="width:'.$quota.'%"></div></div>'.$quota.'% used on '.$quota_max.' MB</p>';
$res .= '<li class="quota_info"><div class="progress bg-secondary border"><div class="progress-bar bg-light" style="width:'.$quota.'%"></div></div>'.$quota.'% used on '.$quota_max.' MB</li>';
}
$res .= '</ul>';
$this->out('imap_expanded_folder_formatted', $res);
}
}
Expand Down

0 comments on commit af95438

Please sign in to comment.