X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fexternalstore%2FExternalStoreHttp.php;h=879686f724c66ba97a908ec06459a4de3f681f7b;hb=4943c74ac42f5019a6d567fa31513f8422769dd7;hp=8e1e49fa60f91fc5cff90a07df982a69c9c15aef;hpb=f1c7c0f03da1607dc955dc8db879a16fc0575657;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/externalstore/ExternalStoreHttp.php b/includes/externalstore/ExternalStoreHttp.php index 8e1e49fa60..879686f724 100644 --- a/includes/externalstore/ExternalStoreHttp.php +++ b/includes/externalstore/ExternalStoreHttp.php @@ -21,30 +21,21 @@ */ /** - * Example class for HTTP accessable external objects. + * Example class for HTTP accessible external objects. * Only supports reading, not storing. * * @ingroup ExternalStorage */ class ExternalStoreHttp extends ExternalStoreMedium { - /** - * @see ExternalStoreMedium::fetchFromURL() - * @param string $url - * @return string|bool - * @throws MWException - */ public function fetchFromURL( $url ) { return Http::get( $url, [], __METHOD__ ); } - /** - * @see ExternalStoreMedium::store() - * @param string $cluster - * @param string $data - * @return string|bool - * @throws MWException - */ - public function store( $cluster, $data ) { + public function store( $location, $data ) { throw new MWException( "ExternalStoreHttp is read-only and does not support store()." ); } + + public function isReadOnly( $location ) { + return true; + } }