mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-11 12:11:19 +00:00
checkQuota() requires user object as a parameter
This commit is contained in:
parent
bdaa6dfb02
commit
9be1d40624
|
@ -45,7 +45,7 @@ class SeedDMS_View_MyAccount extends SeedDMS_Bootstrap_Style {
|
||||||
$this->pageNavigation(getMLText("my_account"), "my_account");
|
$this->pageNavigation(getMLText("my_account"), "my_account");
|
||||||
|
|
||||||
if($quota > 0) {
|
if($quota > 0) {
|
||||||
if(($remain = checkQuota()) < 0) {
|
if(($remain = checkQuota($user)) < 0) {
|
||||||
$this->warningMsg(getMLText('quota_warning', array('bytes'=>SeedDMS_Core_File::format_filesize(abs($remain)))));
|
$this->warningMsg(getMLText('quota_warning', array('bytes'=>SeedDMS_Core_File::format_filesize(abs($remain)))));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user