add missing argument of checkQuota() (Bug #184)

This commit is contained in:
Uwe Steinmann 2014-11-19 20:36:06 +01:00
parent ed486aabb0
commit 2821e15867
3 changed files with 3 additions and 3 deletions

View File

@ -41,7 +41,7 @@ if ($folder->getAccessMode($user) < M_READWRITE) {
UI::exitError(getMLText("folder_title", array("foldername" => htmlspecialchars($folder->getName()))),getMLText("access_denied"));
}
$remain = checkQuota();
$remain = checkQuota($user);
if ($remain < 0) {
UI::exitError(getMLText("folder_title", array("foldername" => htmlspecialchars($folder->getName()))),getMLText("quota_exceeded", array('bytes'=>SeedDMS_Core_File::format_filesize(abs($remain)))));
}

View File

@ -43,7 +43,7 @@ if ($document->getAccessMode($user) < M_READWRITE) {
UI::exitError(getMLText("document_title", array("documentname" => htmlspecialchars($document->getName()))),getMLText("access_denied"));
}
$remain = checkQuota();
$remain = checkQuota($user);
if ($remain < 0) {
UI::exitError(getMLText("document_title", array("documentname" => htmlspecialchars($document->getName()))),getMLText("quota_exceeded", array('bytes'=>SeedDMS_Core_File::format_filesize(abs($remain)))));
}

View File

@ -45,7 +45,7 @@ class SeedDMS_View_MyAccount extends SeedDMS_Bootstrap_Style {
$this->pageNavigation(getMLText("my_account"), "my_account");
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)))));
}
}