Author: david
Date: Tue Aug 23 10:57:19 2011
New Revision: 9567
Log:
Don't attemp to move remote resources
Modified:
trunk/lib/task/migrate/QubitMigrate110.class.php
Modified: trunk/lib/task/migrate/QubitMigrate110.class.php
==============================================================================
--- trunk/lib/task/migrate/QubitMigrate110.class.php Tue Aug 23 10:52:20
2011 (r9566)
+++ trunk/lib/task/migrate/QubitMigrate110.class.php Tue Aug 23 10:57:19
2011 (r9567)
@@ -631,11 +631,17 @@
// Get repository
$repo = $this->getRowByKeyOrId('QubitRepository',
$infoObject['repository_id']);
- // Update digital object and derivatives
+ // Update digital object and derivatives
foreach ($this->data['QubitDigitalObject'] as $key2 => &$item2)
{
if ($key == $key2 || (isset($item2['parent_id']) && $key ==
$item2['parent_id']))
{
+ // Don't try to move remote assets
+ if ('http://' == substr($item2['path'], 0, 7))
+ {
+ continue;
+ }
+
// Move assets
$newpath = str_replace('uploads', 'uploads/r/'.$repo['slug'],
$item2['path'].$item2['name']);
--
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.