X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=blobdiff_plain;f=includes%2FWebStart.php;h=957309137eb67b5877e36270e94139d357eece55;hb=7d02a606752cc21b10cddfd806b5dc80c0de904b;hp=c83fdea5115b73249da15fec30d5dafcecaecf06;hpb=af7ae6c804be8629fe2305e3a088f03e1af2fa9b;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();