Revert "Parser: Add Title type hints"
[lhc/web/wiklou.git] / includes / sparql / SparqlClient.php
index 6c913d2..20fc9b3 100644 (file)
@@ -170,12 +170,12 @@ 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();
-               \MediaWiki\suppressWarnings();
+               \Wikimedia\suppressWarnings();
                $data = json_decode( $result, true );
-               \MediaWiki\restoreWarnings();
+               \Wikimedia\restoreWarnings();
                if ( $data === null || $data === false ) {
                        throw new SparqlException( "HTTP request failed, response:\n" .
                                substr( $result, 1024 ) );