Skip to content

Commit

Permalink
Less hacky fix?
Browse files Browse the repository at this point in the history
  • Loading branch information
alexpott committed Feb 14, 2024
1 parent 9af6b4d commit e16982a
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions thunder.profile
Original file line number Diff line number Diff line change
Expand Up @@ -225,12 +225,6 @@ function thunder_media_source_info_alter(array &$sources): void {
* fixed.
*/
function _thunder_transaction(array &$install_state): void {
$manager = Database::getConnection()->transactionManager();
$reflection = new \ReflectionClass($manager);

/** @var array<string,\Drupal\Core\Database\Transaction\StackItem> $stack */
$stack = $reflection->getMethod('stack')->invoke($manager);
foreach (array_reverse($stack) as $id => $stackItem) {
$manager->unpile($stackItem->name, $id);
}
// Force a redirect.
$install_state['parameters_changed'] = TRUE;
}

0 comments on commit e16982a

Please sign in to comment.