Ignore:
Timestamp:
Aug 28, 2008 2:04:19 PM (5 years ago)
Author:
alec
Message:
  • Added option 'quota_zero_as_unlimited' (#1484604)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/program/steps/mail/func.inc

    r1686 r1691  
    458458function rcmail_quota_content($quota=NULL) 
    459459  { 
    460   global $IMAP, $COMM_PATH; 
     460  global $IMAP, $COMM_PATH, $RCMAIL; 
    461461 
    462462  $display = isset($_SESSION['quota_display']) ? $_SESSION['quota_display'] : ''; 
     
    472472    $quota = $IMAP->get_quota(); 
    473473 
    474   if ($quota) 
     474  if ($quota && !($quota['total']==0 && $RCMAIL->config->get('quota_zero_as_unlimited'))) 
    475475    { 
    476476    $quota_text = sprintf('%s / %s (%.0f%%)', 
Note: See TracChangeset for help on using the changeset viewer.