X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fexternalstore%2FExternalStoreMwstore.php;h=0c6d022fc5da142752af3fd86954ff9e408fa965;hp=b05843c4c888e319d90a3875e059e28e5bb3c853;hb=a2c8c2969420a0f150c03f76e3a0bf9028fcda43;hpb=c340c41b37b5079ba90489f6b212bb8e4642031a diff --git a/includes/externalstore/ExternalStoreMwstore.php b/includes/externalstore/ExternalStoreMwstore.php index b05843c4c8..0c6d022fc5 100644 --- a/includes/externalstore/ExternalStoreMwstore.php +++ b/includes/externalstore/ExternalStoreMwstore.php @@ -35,6 +35,8 @@ class ExternalStoreMwstore extends ExternalStoreMedium { * The URL returned is of the form of the form mwstore://backend/container/wiki/id * * @see ExternalStoreMedium::fetchFromURL() + * @param string $url + * @return bool */ public function fetchFromURL( $url ) { $be = FileBackendGroup::singleton()->backendFromPath( $url ); @@ -71,9 +73,6 @@ class ExternalStoreMwstore extends ExternalStoreMedium { return $blobs; } - /** - * @see ExternalStoreMedium::store() - */ public function store( $backend, $data ) { $be = FileBackendGroup::singleton()->get( $backend ); if ( $be instanceof FileBackend ) { @@ -97,4 +96,10 @@ class ExternalStoreMwstore extends ExternalStoreMedium { return false; } + + public function isReadOnly( $backend ) { + $be = FileBackendGroup::singleton()->get( $backend ); + + return $be ? $be->isReadOnly() : false; + } }