Fixed trailing slash removal code.
authorAaron Schulz <aschulz@wikimedia.org>
Fri, 31 May 2013 17:56:12 +0000 (10:56 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Fri, 31 May 2013 17:56:12 +0000 (10:56 -0700)
Change-Id: I152dcec5cc8f4c417e3503f4b8fd3fdd8bc4fda5

maintenance/copyFileBackend.php

index 1ccd121..13301ed 100644 (file)
@@ -56,7 +56,7 @@ class CopyFileBackend extends Maintenance {
                $src = FileBackendGroup::singleton()->get( $this->getOption( 'src' ) );
                $dst = FileBackendGroup::singleton()->get( $this->getOption( 'dst' ) );
                $containers = explode( '|', $this->getOption( 'containers' ) );
-               $subDir = $this->getOption( rtrim( 'subdir', '/' ), '' );
+               $subDir = rtrim( $this->getOption( 'subdir', '' ), '/' );
 
                $rateFile = $this->getOption( 'ratefile' );