X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fexternalstore%2FExternalStoreMwstore.php;h=0c6d022fc5da142752af3fd86954ff9e408fa965;hp=5395f5627441c116bbae106b2df58f06102d3ac5;hb=656f60c15434afb69d60e511cfebf84fc4fbc2c2;hpb=5fa4cdf860c79b32ab6ef034c6d9420c2727f695 diff --git a/includes/externalstore/ExternalStoreMwstore.php b/includes/externalstore/ExternalStoreMwstore.php index 5395f56274..0c6d022fc5 100644 --- a/includes/externalstore/ExternalStoreMwstore.php +++ b/includes/externalstore/ExternalStoreMwstore.php @@ -73,13 +73,6 @@ class ExternalStoreMwstore extends ExternalStoreMedium { return $blobs; } - /** - * @see ExternalStoreMedium::store() - * @param string $backend - * @param string $data - * @return string|bool - * @throws MWException - */ public function store( $backend, $data ) { $be = FileBackendGroup::singleton()->get( $backend ); if ( $be instanceof FileBackend ) { @@ -103,4 +96,10 @@ class ExternalStoreMwstore extends ExternalStoreMedium { return false; } + + public function isReadOnly( $backend ) { + $be = FileBackendGroup::singleton()->get( $backend ); + + return $be ? $be->isReadOnly() : false; + } }