r109706 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r109705‎ | r109706 | r109707 >
Date:00:33, 22 January 2012
Author:aaron
Status:ok
Tags:filebackend 
Comment:
* Another fix for SwiftFileBackend file listings
* Fixed bogus array key reference in SwiftFileBackend constructor
Modified paths:
  • /trunk/phase3/includes/filerepo/backend/SwiftFileBackend.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/filerepo/backend/SwiftFileBackend.php
@@ -52,7 +52,7 @@
5353 );
5454 // Optional settings
5555 $this->authTTL = isset( $config['swiftAuthTTL'] )
56 - ? $config['authTTL']
 56+ ? $config['swiftAuthTTL']
5757 : 120; // some sane number
5858 $this->swiftAnonUser = isset( $config['swiftAnonUser'] )
5959 ? $config['swiftAnonUser']
@@ -795,7 +795,7 @@
796796 if ( $this->dir == '' ) { // whole container
797797 $this->suffixStart = 0;
798798 } else { // dir within container
799 - $this->suffixStart = strlen( $dir ) + 1; // size of "path/to/dir/"
 799+ $this->suffixStart = strlen( $this->dir ) + 1; // size of "path/to/dir/"
800800 }
801801 }
802802

Status & tagging log