Merge "Revert "Log the reason why revision->getContent() returns null""
[lhc/web/wiklou.git] / includes / externalstore / ExternalStoreMwstore.php
index b05843c..0c6d022 100644 (file)
@@ -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;
+       }
 }