[ExternalStore] Made ExternalStoreMwstore use private containers.
authorAaron Schulz <aschulz@wikimedia.org>
Fri, 8 Feb 2013 04:33:38 +0000 (20:33 -0800)
committerAaron Schulz <aschulz@wikimedia.org>
Fri, 8 Feb 2013 04:33:38 +0000 (20:33 -0800)
Change-Id: Ice87446b9d3a8d178f0fda10ba606d60089d76d4

includes/externalstore/ExternalStoreMwstore.php

index 8e0adda..0911cca 100644 (file)
@@ -62,7 +62,7 @@ class ExternalStoreMwstore extends ExternalStoreMedium {
                        $url = $be->getContainerStoragePath( 'data' ) . '/' .
                                rawurlencode( $wiki ) . "/{$rand[0]}/{$rand[1]}/{$rand[2]}/{$id}";
 
-                       $be->prepare( array( 'dir' => dirname( $url ) ) );
+                       $be->prepare( array( 'dir' => dirname( $url ), 'noAccess' => 1, 'noListing' => 1 ) );
                        if ( $be->create( array( 'dst' => $url, 'content' => $data ) )->isOK() ) {
                                return $url;
                        }