Skip to content
Draft
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
8 changes: 8 additions & 0 deletions src/Settings/PretixSettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,14 @@ class PretixSettings extends AbstractSettings {
* Decide if the settings are ready for use.
*/
public function isReady(): bool {
// Skip any update hooks when Drupal is updating, cf.
// https://git.drupalcode.org/project/drupal/-/blob/11.x/core/authorize.php?ref_type=heads
// @todo "authorize.php is deprecated in drupal:11.2.0"
// (https://git.drupalcode.org/project/drupal/-/blob/11.x/core/authorize.php?ref_type=heads#L33)
if (defined('MAINTENANCE_MODE') && MAINTENANCE_MODE == 'update') {
return FALSE;
}

return !empty(trim($this->url ?? ''));
}

Expand Down
Loading