Merge "Pass message arguments as array to ErrorPageError"
[lhc/web/wiklou.git] / includes / historyblob / HistoryBlobStub.php
index 4995d3b..c92e1b5 100644 (file)
@@ -20,6 +20,8 @@
  * @file
  */
 
+use MediaWiki\MediaWikiServices;
+
 /**
  * Pointer object for an item within a CGZ blob stored in the text table.
  */
@@ -99,8 +101,9 @@ class HistoryBlobStub {
                                if ( !isset( $parts[1] ) || $parts[1] == '' ) {
                                        return false;
                                }
-                               $row->old_text = ExternalStore::fetchFromURL( $url );
-
+                               $row->old_text = MediaWikiServices::getInstance()
+                                       ->getExternalStoreAccess()
+                                       ->fetchFromURL( $url );
                        }
 
                        if ( !in_array( 'object', $flags ) ) {
@@ -146,5 +149,6 @@ if ( false ) {
        // autoload entries for the lowercase variants of these classes (T166759).
        // The code below is never executed, but it is picked up by the AutoloadGenerator
        // parser, which scans for class_alias() calls.
+       // @phan-suppress-next-line PhanRedefineClassAlias
        class_alias( HistoryBlobStub::class, 'historyblobstub' );
 }