Author: david
Date: Tue Jul 19 15:36:53 2011
New Revision: 9330
Log:
Reduce indirection
Modified:
trunk/lib/model/QubitDigitalObject.php
Modified: trunk/lib/model/QubitDigitalObject.php
==============================================================================
--- trunk/lib/model/QubitDigitalObject.php Tue Jul 19 15:34:41 2011
(r9329)
+++ trunk/lib/model/QubitDigitalObject.php Tue Jul 19 15:36:53 2011
(r9330)
@@ -766,8 +766,6 @@
*/
public static function getAssetPathfromParent($parent)
{
- $uploadPathRelative = sfConfig::get('app_upload_dir');
-
if (get_class($parent) == 'QubitDigitalObject')
{
$infoObject = $parent->getAncestorInformationObject();
@@ -786,7 +784,7 @@
// the information object id as sub-directories.
// e.g. if infoObjectId=3235 then path='uploads/3/2/3235/'
$infoObjectId = (string) $infoObject->id;
- $assetPath =
'/'.$uploadPathRelative.'/'.$infoObjectId[0].'/'.$infoObjectId[1].'/'.$infoObjectId;
+ $assetPath =
'/'.sfConfig::get('app_upload_dir').'/'.$infoObjectId[0].'/'.$infoObjectId[1].'/'.$infoObjectId;
return $assetPath;
}
--
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.