dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Remove parameter 'options' from hook 'SkinEditSectionLinks'"
[lhc/web/wiklou.git]
/
includes
/
externalstore
/
ExternalStoreHttp.php
diff --git
a/includes/externalstore/ExternalStoreHttp.php
b/includes/externalstore/ExternalStoreHttp.php
index
879686f
..
a723557
100644
(file)
--- a/
includes/externalstore/ExternalStoreHttp.php
+++ b/
includes/externalstore/ExternalStoreHttp.php
@@
-20,6
+20,8
@@
* @file
*/
* @file
*/
+use MediaWiki\MediaWikiServices;
+
/**
* Example class for HTTP accessible external objects.
* Only supports reading, not storing.
/**
* Example class for HTTP accessible external objects.
* Only supports reading, not storing.
@@
-28,7
+30,8
@@
*/
class ExternalStoreHttp extends ExternalStoreMedium {
public function fetchFromURL( $url ) {
*/
class ExternalStoreHttp extends ExternalStoreMedium {
public function fetchFromURL( $url ) {
- return Http::get( $url, [], __METHOD__ );
+ return MediaWikiServices::getInstance()->getHttpRequestFactory()->
+ get( $url, [], __METHOD__ );
}
public function store( $location, $data ) {
}
public function store( $location, $data ) {