Révision 6b24a280
Ajouté par Assos Assos il y a presque 4 ans
drupal7/includes/batch.inc | ||
---|---|---|
478 | 478 |
$queue->deleteQueue(); |
479 | 479 |
} |
480 | 480 |
} |
481 |
// Clean-up the session. Not needed for CLI updates. |
|
482 |
if (isset($_SESSION)) { |
|
483 |
unset($_SESSION['batches'][$batch['id']]); |
|
484 |
if (empty($_SESSION['batches'])) { |
|
485 |
unset($_SESSION['batches']); |
|
486 |
} |
|
487 |
} |
|
481 | 488 |
} |
482 | 489 |
$_batch = $batch; |
483 | 490 |
$batch = NULL; |
484 | 491 |
|
485 |
// Clean-up the session. Not needed for CLI updates. |
|
486 |
if (isset($_SESSION)) { |
|
487 |
unset($_SESSION['batches'][$batch['id']]); |
|
488 |
if (empty($_SESSION['batches'])) { |
|
489 |
unset($_SESSION['batches']); |
|
490 |
} |
|
491 |
} |
|
492 |
|
|
493 | 492 |
// Redirect if needed. |
494 | 493 |
if ($_batch['progressive']) { |
495 | 494 |
// Revert the 'destination' that was saved in batch_process(). |
Formats disponibles : Unified diff
-a