Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions modules/custom/wxt_core/wxt_core.install
Original file line number Diff line number Diff line change
Expand Up @@ -737,3 +737,22 @@ function wxt_core_update_8503() {
]);
}
}

/**
* Issue #3510980: Remove the bad system.site entries, 0: '' and 1: ''.
*/
function wxt_core_update_8504() : void {
$config = \Drupal::service('config.factory')->getEditable('system.site');
$page_0 = $config->get('page.0');
$page_1 = $config->get('page.1');

if ($page_0 === '') {
$config->clear('page.0');
}

if ($page_1 === '') {
$config->clear('page.1');
}

$config->save();
}
Loading