Author: sevein
Date: Thu Aug 23 15:06:47 2012
New Revision: 12182
Log:
Use --source-name to avoid warning
Modified:
trunk/lib/QubitCsvImport.class.php
Modified: trunk/lib/QubitCsvImport.class.php
==============================================================================
--- trunk/lib/QubitCsvImport.class.php Thu Aug 23 14:41:31 2012 (r12181)
+++ trunk/lib/QubitCsvImport.class.php Thu Aug 23 15:06:47 2012 (r12182)
@@ -64,18 +64,20 @@
if (isset($this->parent))
{
// Example: php symfony csv:import --default-parent-slug="$sourceName"
/tmp/foobar
- $command = sprintf('php %s %s --default-parent-slug=%s %s',
+ $command = sprintf('php %s %s --source-name=%s --default-parent-slug=%s
%s',
escapeshellarg(sfConfig::get('sf_root_dir').DIRECTORY_SEPARATOR.'symfony'),
escapeshellarg($taskClassName),
+ escapeshellarg($csvFile),
escapeshellarg($parent->slug),
escapeshellarg($csvFile));
}
else
{
// Example: php symfony csv:import /tmp/foobar
- $command = sprintf('php %s %s %s',
+ $command = sprintf('php %s %s --source-name=%s %s',
escapeshellarg(sfConfig::get('sf_root_dir').DIRECTORY_SEPARATOR.'symfony'),
escapeshellarg($taskClassName),
+ escapeshellarg($csvFile),
escapeshellarg($csvFile));
}
--
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.