[commits] [Wiki] changed: AltH5Imp6Quota
Wiki Guest
wikiguest at horde.org
Sun Feb 24 02:57:44 UTC 2013
guest [201.29.178.171] Sun, 24 Feb 2013 02:57:44 +0000
Modified page: http://wiki.horde.org/AltH5Imp6Quota
New Revision: 6
Change log: Correct lib/Quota.php and lib/Ui/Quota.php
@@ -306,8 +306,11 @@
: _("Entrada: %.1f %s"),
'nolimit_shorth' =>
isset($this->_params['format']['nolimit_shorth'])
? $this->_params['format']['nolimit_shorth']
: _(" - Pastas: %.1f %s"),
+ 'nolimit_sshorth' =>
isset($this->_params['format']['nolimit_sshorth'])
+ ? $this->_params['format']['nolimit_sshorth']
+ : _("Pastas: %.1f %s"),
);
}
</code>
----
@@ -441,10 +444,15 @@
}
} else {
if ($quota['usagehome'] != 0) {
- $quota['usagehome'] = $quota['usagehome'] / $calc;
- $ret['messagehome'] = sprintf($strings['nolimit_shorth'],
$quota['usagehome'], $unit);
+ if ($quota['usagevar'] != 0) {
+ $quota['usagehome'] = $quota['usagehome'] / $calc;
+ $ret['messagehome'] =
sprintf($strings['nolimit_shorth'], $quota['usagehome'], $unit);
+ } else {
+ $quota['usagehome'] = $quota['usagehome'] / $calc;
+ $ret['messagehome'] =
sprintf($strings['nolimit_sshorth'], $quota['usagehome'], $unit);
+ }
} else {
$ret['messagehome'] = _(" ");
}
}
More information about the commits
mailing list