X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Finstaller%2FInstaller.php;h=12e8dd1c10d7e3e88dfc2e7d24818171925ae244;hb=b140b73b54785966138c6296057c02046f72786f;hp=f03fe6a3f410fdb34ad41baa0b32e31b68b30a2b;hpb=22806b0a4509e97b56fb52b387e17e3c80fb7eb2;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/installer/Installer.php b/includes/installer/Installer.php index f03fe6a3f4..12e8dd1c10 100644 --- a/includes/installer/Installer.php +++ b/includes/installer/Installer.php @@ -446,6 +446,8 @@ abstract class Installer { $this->parserTitle = Title::newFromText( 'Installer' ); $this->parserOptions = new ParserOptions( $wgUser ); // language will be wrong :( $this->parserOptions->setEditSection( false ); + // Don't try to access DB before user language is initialised + $this->setParserLanguage( Language::factory( 'en' ) ); } /** @@ -674,7 +676,7 @@ abstract class Installer { try { $out = $wgParser->parse( $text, $this->parserTitle, $this->parserOptions, $lineStart ); $html = $out->getText(); - } catch ( DBAccessError $e ) { + } catch ( MediaWiki\Services\ServiceDisabledException $e ) { $html = ' ' . htmlspecialchars( $text ); if ( !empty( $this->debug ) ) { @@ -722,6 +724,7 @@ abstract class Installer { 'ss_good_articles' => 0, 'ss_total_pages' => 0, 'ss_users' => 0, + 'ss_active_users' => 0, 'ss_images' => 0 ], __METHOD__, 'IGNORE'