CC-5786: Quota Enforcement in the File Upload API
Tweaked this so it will work on self-hosted instances
This commit is contained in:
parent
4add0f0b7b
commit
63e2eda64b
3 changed files with 16 additions and 10 deletions
|
@ -27,7 +27,7 @@ class PluploadController extends Zend_Controller_Action
|
|||
$this->view->headLink()->appendStylesheet($baseUrl.'css/addmedia.css?'.$CC_CONFIG['airtime_version']);
|
||||
|
||||
$this->view->quotaLimitReached = false;
|
||||
if (Application_Model_Preference::getDiskUsage() > Application_Model_Preference::getDiskQuota()) {
|
||||
if (Application_Model_Systemstatus::isDiskOverQuota()) {
|
||||
$this->view->quotaLimitReached = true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue