r110923 made basePath always null!
authorAntoine Musso <hashar@users.mediawiki.org>
Wed, 8 Feb 2012 09:54:44 +0000 (09:54 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Wed, 8 Feb 2012 09:54:44 +0000 (09:54 +0000)
includes/filerepo/backend/FSFileBackend.php

index 881df56..cc65809 100644 (file)
@@ -43,7 +43,7 @@ class FSFileBackend extends FileBackendStore {
                // Remove any possible trailing slash from directories
 
                if ( isset( $config['basePath'] ) ) {
-                       rtrim( $this->basePath, '/' ); // remove trailing slash
+                       $this->basePath = rtrim( $config['basePath'], '/' ); // remove trailing slash
                } else {
                        $this->basePath = null; // none; containers must have explicit paths
                }