Projet

Général

Profil

Révision f0456308

Ajouté par Assos Assos il y a plus de 9 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/views_data_export/views_data_export.drush.inc
159 159
  // We execute the view normally, and take advantage
160 160
  // of an alter function to interject later and batch it ourselves
161 161

  
162
  $options = array (
163
    'output_file' => realpath(drush_get_context('DRUSH_OLDCWD', getcwd())) . '/' . $output_file,
164
  );
162
  $options = array();
163
  // Let's see if the given $output_file is a absolute path.
164
  if (strpos($output_file, '/') === 0) {
165
    $options['output_file'] = $output_file;
166
  }
167
  else {
168
    $options['output_file'] = realpath(drush_get_context('DRUSH_OLDCWD', getcwd())) . '/' . $output_file;
169
  }
170

  
171

  
165 172
  if ($view->display_handler->is_batched()) {
166 173
    // This is a batched export, and needs to be handled as such.
167 174
    _drush_views_data_export_override_batch($view_name, $display_id, $options);

Formats disponibles : Unified diff