Update FSRepo to avoid the deprecated FileBackend construction style
authorAaron Schulz <aschulz@wikimedia.org>
Tue, 10 Dec 2013 22:29:06 +0000 (14:29 -0800)
committerBryanDavis <bdavis@wikimedia.org>
Thu, 12 Dec 2013 23:39:26 +0000 (23:39 +0000)
Change-Id: Iaa8d57e22750582eb95e4abab7444ff291807416

includes/filerepo/FSRepo.php

index edf0eec..5896aba 100644 (file)
@@ -56,7 +56,8 @@ class FSRepo extends FileRepo {
                        // Get the FS backend configuration
                        $backend = new FSFileBackend( array(
                                'name' => $info['name'] . '-backend',
-                               'lockManager' => 'fsLockManager',
+                               'wikiId' => wfWikiID(),
+                               'lockManager' => LockManagerGroup::singleton( wfWikiID() )->get( 'fsLockManager' ),
                                'containerPaths' => array(
                                        "{$repoName}-public" => "{$directory}",
                                        "{$repoName}-temp" => "{$directory}/temp",