Author: david
Date: Fri Aug 19 16:06:39 2011
New Revision: 9560
Log:
Cosmetic changes
Modified:
trunk/lib/model/QubitDigitalObject.php
Modified: trunk/lib/model/QubitDigitalObject.php
==============================================================================
--- trunk/lib/model/QubitDigitalObject.php Fri Aug 19 15:05:47 2011
(r9559)
+++ trunk/lib/model/QubitDigitalObject.php Fri Aug 19 16:06:39 2011
(r9560)
@@ -772,20 +772,20 @@
throw new sfException('Couldn\'t find related information object for
digital object');
}
- // Put assets in path of current repository
+ $id = (string) $infoObject->id;
+
+ // determine path for current repository
$repoDir = '';
if (isset($infoObject->repository))
{
- $repoDir = 'repo/'.$infoObject->repositoryId.'/';
+ $repoDir = $infoObject->repositoryId;
}
else
{
- $repoDir = 'repo/null/';
+ $repoDir = 'null';
}
- $id = (string) $infoObject->id;
-
- return
'/'.sfConfig::get('app_upload_dir').'/'.$repoDir.$id[0].'/'.$id[1].'/'.$id;
+ return
'/'.sfConfig::get('app_upload_dir').'/repo/'.$repoDir.'/'.$id[0].'/'.$id[1].'/'.$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.