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 "Chinese Conversion Table Update 2016-3"
[lhc/web/wiklou.git]
/
includes
/
externalstore
/
ExternalStoreHttp.php
diff --git
a/includes/externalstore/ExternalStoreHttp.php
b/includes/externalstore/ExternalStoreHttp.php
index
311e32b
..
c1f0651
100644
(file)
--- a/
includes/externalstore/ExternalStoreHttp.php
+++ b/
includes/externalstore/ExternalStoreHttp.php
@@
-26,20
+26,18
@@
*
* @ingroup ExternalStorage
*/
*
* @ingroup ExternalStorage
*/
-class ExternalStoreHttp {
-
+class ExternalStoreHttp extends ExternalStoreMedium {
/**
/**
- * Fetch data from given URL
- *
- * @param $url String: the URL
- * @return String: the content at $url
+ * @see ExternalStoreMedium::fetchFromURL()
*/
*/
- function fetchFromURL( $url ) {
- $ret = Http::get( $url );
- return $ret;
+ public function fetchFromURL( $url ) {
+ return Http::get( $url, [], __METHOD__ );
}
}
- /*
XXX: may require other methods, for store, delete,
- *
whatever, for initial ext storage
+ /*
*
+ *
@see ExternalStoreMedium::store()
*/
*/
+ public function store( $cluster, $data ) {
+ throw new MWException( "ExternalStoreHttp is read-only and does not support store()." );
+ }
}
}