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 "Fix typo accessable --> accessible"
[lhc/web/wiklou.git]
/
includes
/
externalstore
/
ExternalStoreHttp.php
diff --git
a/includes/externalstore/ExternalStoreHttp.php
b/includes/externalstore/ExternalStoreHttp.php
index
c1f0651
..
879686f
100644
(file)
--- a/
includes/externalstore/ExternalStoreHttp.php
+++ b/
includes/externalstore/ExternalStoreHttp.php
@@
-21,23
+21,21
@@
*/
/**
*/
/**
- * Example class for HTTP access
a
ble external objects.
+ * Example class for HTTP access
i
ble external objects.
* Only supports reading, not storing.
*
* @ingroup ExternalStorage
*/
class ExternalStoreHttp extends ExternalStoreMedium {
* Only supports reading, not storing.
*
* @ingroup ExternalStorage
*/
class ExternalStoreHttp extends ExternalStoreMedium {
- /**
- * @see ExternalStoreMedium::fetchFromURL()
- */
public function fetchFromURL( $url ) {
return Http::get( $url, [], __METHOD__ );
}
public function fetchFromURL( $url ) {
return Http::get( $url, [], __METHOD__ );
}
- /**
- * @see ExternalStoreMedium::store()
- */
- public function store( $cluster, $data ) {
+ public function store( $location, $data ) {
throw new MWException( "ExternalStoreHttp is read-only and does not support store()." );
}
throw new MWException( "ExternalStoreHttp is read-only and does not support store()." );
}
+
+ public function isReadOnly( $location ) {
+ return true;
+ }
}
}