Author: david
Date: Fri Aug 19 12:19:08 2011
New Revision: 9549

Log:
Always put digital assets in repository directory

Modified:
   trunk/lib/model/QubitDigitalObject.php

Modified: trunk/lib/model/QubitDigitalObject.php
==============================================================================
--- trunk/lib/model/QubitDigitalObject.php      Fri Aug 19 11:45:29 2011        
(r9548)
+++ trunk/lib/model/QubitDigitalObject.php      Fri Aug 19 12:19:08 2011        
(r9549)
@@ -774,17 +774,13 @@
 
     // Put assets in path of current repository
     $repoDir = '';
-    $multiRepo = QubitSetting::getSettingByName('multi_repository');
-    if (isset($multiRepo) && 1 == intval($multiRepo->value))
+    if (isset($infoObject->repository))
     {
-      if (isset($infoObject->repository))
-      {
-        $repoDir = 'repo/'.$infoObject->repositoryId.'/';
-      }
-      else
-      {
-        $repoDir = 'repo/null/';
-      }
+      $repoDir = 'repo/'.$infoObject->repositoryId.'/';
+    }
+    else
+    {
+      $repoDir = 'repo/null/';
     }
 
     $id = (string) $infoObject->id;

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