Author: david
Date: Tue Jul 19 15:33:06 2011
New Revision: 9327

Log:
Cosmetic change

Modified:
   trunk/lib/model/QubitDigitalObject.php

Modified: trunk/lib/model/QubitDigitalObject.php
==============================================================================
--- trunk/lib/model/QubitDigitalObject.php      Tue Jul 19 15:32:55 2011        
(r9326)
+++ trunk/lib/model/QubitDigitalObject.php      Tue Jul 19 15:33:06 2011        
(r9327)
@@ -771,17 +771,18 @@
     if (get_class($parent) == 'QubitDigitalObject')
     {
       $infoObject = $parent->getAncestorInformationObject();
-      $infoObjectId = (string) $infoObject->id;
     }
     else if (get_class($parent) == 'QubitInformationObject')
     {
-      $infoObjectId = (string) $parent->id;
+      $infoObject = $parent;
     }
     else
     {
       return false;
     }
 
+    $infoObjectId = (string) $infoObject->id;
+
     // To keep to a minimum the number of sub-directories in the uploads dir,
     // we break up information object path by using first and second digits of
     // the information object id as sub-directories.

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