Author: david
Date: Fri Sep 23 14:47:33 2011
New Revision: 9804

Log:
Match units (GB) for disk usage check

Modified:
   trunk/apps/qubit/modules/digitalobject/actions/editAction.class.php

Modified: trunk/apps/qubit/modules/digitalobject/actions/editAction.class.php
==============================================================================
--- trunk/apps/qubit/modules/digitalobject/actions/editAction.class.php Fri Sep 
23 11:11:22 2011        (r9803)
+++ trunk/apps/qubit/modules/digitalobject/actions/editAction.class.php Fri Sep 
23 14:47:33 2011        (r9804)
@@ -174,9 +174,10 @@
       }
 
       // Check repository file upload limit
-      if (null !== ($repo = 
$this->informationObject->getRepository(array('inherit' => true)))
+      $repo = $this->informationObject->getRepository(array('inherit' => 
true));
+      if (null !== $repo
         && $repo->uploadLimit != -1
-        && $repo->getDiskUsage() >= $repo->uploadLimit)
+        && $repo->getDiskUsage(array('units' => 'G')) >= 
floatval($repo->uploadLimit))
       {
         $this->redirect(array($repo, 'module' => 'repository', 'action' => 
'uploadLimitExceeded'));
       }

-- 
You received this message because you are subscribed to the Google Groups 
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/qubit-commits?hl=en.

Reply via email to