From 31bfcb39d903d76a8ef99bbcf00596937c812cad Mon Sep 17 00:00:00 2001 From: Umherirrender Date: Sun, 9 Dec 2018 11:17:39 +0100 Subject: [PATCH] Use english for message text in SparqlException Change-Id: I1d3d0fb5957527a2de9d8d4e86cae8aed8732866 --- includes/sparql/SparqlClient.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/sparql/SparqlClient.php b/includes/sparql/SparqlClient.php index 778a3b3248..20fc9b3255 100644 --- a/includes/sparql/SparqlClient.php +++ b/includes/sparql/SparqlClient.php @@ -170,7 +170,7 @@ class SparqlClient { $status = $request->execute(); if ( !$status->isOK() ) { - throw new SparqlException( "HTTP error: {$status->getWikiText()}" ); + throw new SparqlException( 'HTTP error: ' . $status->getWikiText( false, false, 'en' ) ); } $result = $request->getContent(); \Wikimedia\suppressWarnings(); -- 2.20.1