X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FWebStart.php;h=957309137eb67b5877e36270e94139d357eece55;hb=a775c6888bdecd03cea73f5540a8323b6dcbe78f;hp=c83fdea5115b73249da15fec30d5dafcecaecf06;hpb=8768c686e68e89d86adc31ed03da1ec81aae1965;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/WebStart.php b/includes/WebStart.php index c83fdea511..957309137e 100644 --- a/includes/WebStart.php +++ b/includes/WebStart.php @@ -91,17 +91,20 @@ if ( !defined( 'MW_API' ) && header( 'Cache-Control: no-cache' ); header( 'Content-Type: text/html; charset=utf-8' ); HttpStatus::header( 400 ); - $error = wfMessage( 'nonwrite-api-promise-error' )->escaped(); - $content = <<useDatabase( false ) + ->inContentLanguage() + ->escaped(); + $content = << -$error +$errorHtml -EOT; +HTML; header( 'Content-Length: ' . strlen( $content ) ); echo $content; die();