Skip to content
This repository has been archived by the owner on Apr 5, 2018. It is now read-only.

Commit

Permalink
Improved debugging options
Browse files Browse the repository at this point in the history
  • Loading branch information
Bob Olde Hampsink committed Apr 1, 2015
1 parent 892120c commit f5f6518
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions controllers/ImportController.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,9 @@ public function actionImport()
// Add history to settings
$settings['history'] = $history;

// UNCOMMENT FOR DEBUGGING
//craft()->import->debug($settings, $history, 1);

// Determine new folder to save original importfile
$folder = dirname($file).'/'.$history.'/';
IOHelper::ensureFolderExists($folder);
Expand All @@ -129,9 +132,6 @@ public function actionImport()
// Update the settings with the new file location
$settings['file'] = $folder.basename($file);

// UNCOMMENT FOR DEBUGGING
//craft()->import->debug($settings, $history, 1);

// Create the import task
$task = craft()->tasks->createTask('Import', Craft::t('Importing').' '.basename($file), $settings);

Expand Down

0 comments on commit f5f6518

Please sign in to comment.