There was an error while loading. Please reload this page.
1 parent 55d3afa commit be2ae5fCopy full SHA for be2ae5f
1 file changed
src/Settings/PretixSettings.php
@@ -45,6 +45,14 @@ class PretixSettings extends AbstractSettings {
45
* Decide if the settings are ready for use.
46
*/
47
public function isReady(): bool {
48
+ // Skip any update hooks when Drupal is updating, cf.
49
+ // https://git.drupalcode.org/project/drupal/-/blob/11.x/core/authorize.php?ref_type=heads
50
+ // @todo "authorize.php is deprecated in drupal:11.2.0"
51
+ // (https://git.drupalcode.org/project/drupal/-/blob/11.x/core/authorize.php?ref_type=heads#L33)
52
+ if (defined('MAINTENANCE_MODE') && MAINTENANCE_MODE == 'update') {
53
+ return FALSE;
54
+ }
55
+
56
return !empty(trim($this->url ?? ''));
57
}
58
0 commit comments