X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FSetup.php;h=77d2a49f542b1ef43cd350eb8a0608684b12f70e;hb=748c5eae2fd5d897c94c48771161c259941a7488;hp=518531aacf580828ba085720f5a6bf7f2ad3861a;hpb=e19e6bfabcaf2b6aa5dd837ff7057bd6a25baef8;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/Setup.php b/includes/Setup.php index 518531aacf..77d2a49f54 100644 --- a/includes/Setup.php +++ b/includes/Setup.php @@ -440,6 +440,14 @@ if ( $wgEnableEmail ) { $wgUsersNotifiedOnAllChanges = []; } +// $wgSysopEmailBans deprecated in 1.34 +if ( isset( $wgSysopEmailBans ) && $wgSysopEmailBans === false ) { + wfDeprecated( 'wgSysopEmailBans', '1.34' ); + foreach ( $wgGroupPermissions as $group => $_ ) { + unset( $wgGroupPermissions[$group]['blockemail'] ); + } +} + if ( $wgMetaNamespace === false ) { $wgMetaNamespace = str_replace( ' ', '_', $wgSitename ); } @@ -622,6 +630,15 @@ define( 'MW_SERVICE_BOOTSTRAP_COMPLETE', 1 ); MWExceptionHandler::installHandler(); +// T30798: $wgServer must be explicitly set +if ( $wgServer === false ) { + throw new FatalError( + '$wgServer must be set in LocalSettings.php. ' . + 'See ' . + 'https://www.mediawiki.org/wiki/Manual:$wgServer.' + ); +} + // T48998: Bail out early if $wgArticlePath is non-absolute foreach ( [ 'wgArticlePath', 'wgVariantArticlePath' ] as $varName ) { if ( $$varName && !preg_match( '/^(https?:\/\/|\/)/', $$varName ) ) { @@ -721,7 +738,7 @@ if ( is_null( $wgLocaltimezone ) ) { date_default_timezone_set( $wgLocaltimezone ); if ( is_null( $wgLocalTZoffset ) ) { - $wgLocalTZoffset = date( 'Z' ) / 60; + $wgLocalTZoffset = (int)date( 'Z' ) / 60; } // The part after the System| is ignored, but rest of MW fills it // out as the local offset.