Author: jablko
Date: Thu Oct 28 01:49:17 2010
New Revision: 8616

Log:
Cosmetic change

Modified:
   
trunk/apps/qubit/modules/digitalobject/actions/showDownloadComponent.class.php
   trunk/lib/model/QubitDigitalObject.php

Modified: 
trunk/apps/qubit/modules/digitalobject/actions/showDownloadComponent.class.php
==============================================================================
--- 
trunk/apps/qubit/modules/digitalobject/actions/showDownloadComponent.class.php  
    Thu Oct 28 01:25:14 2010        (r8615)
+++ 
trunk/apps/qubit/modules/digitalobject/actions/showDownloadComponent.class.php  
    Thu Oct 28 01:49:17 2010        (r8616)
@@ -55,7 +55,7 @@
     }
 
     // Build a fully qualified URL to this digital object asset
-    if (($this->digitalObject->getMediaTypeId() != QubitTerm::IMAGE_ID || 
$this->usageType == QubitTerm::REFERENCE_ID)
+    if (($this->digitalObject->mediaTypeId != QubitTerm::IMAGE_ID || 
$this->usageType == QubitTerm::REFERENCE_ID)
       && QubitAcl::check($this->digitalObject->informationObject, 
'readMaster'))
     {
       $this->link = public_path($this->digitalObject->getFullPath(), true);

Modified: trunk/lib/model/QubitDigitalObject.php
==============================================================================
--- trunk/lib/model/QubitDigitalObject.php      Thu Oct 28 01:25:14 2010        
(r8615)
+++ trunk/lib/model/QubitDigitalObject.php      Thu Oct 28 01:49:17 2010        
(r8616)
@@ -1115,7 +1115,7 @@
       $newDigiObject->setByteSize(filesize($newFilepath));
       $newDigiObject->setUsageId(QubitTerm::MASTER_ID);
       
$newDigiObject->setMimeType(QubitDigitalObject::deriveMimeType($filename));
-      $newDigiObject->setMediaTypeId($this->getMediaTypeId());
+      $newDigiObject->setMediaTypeId($this->mediaTypeId);
       $newDigiObject->setPageCount();
       $newDigiObject->setSequence($i + 1);
       $newDigiObject->save();

-- 
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