Index: branches/wmf/1.17wmf1/thumb.php |
— | — | @@ -72,7 +72,7 @@ |
73 | 73 | } else if ( $isTemp ) { |
74 | 74 | // Dirty, horrible, evil hack. We need to create a repo with the right zone paths for this to work |
75 | 75 | $localRepo = RepoGroup::singleton()->getLocalRepo(); |
76 | | - $repo = new FSRepo( array( 'directory' => $localRepo->getZonePath( 'temp' ), 'url' => $localRepo->getZoneUrl( 'temp' ), 'thumbPath'=> $localRepo->getZonePath( 'thumb' ) . '/temp', 'thumbUrl' => $localRepo->getZoneUrl( 'thumb' ) . '/temp' ) ); |
| 76 | + $repo = new FSRepo( array( 'directory' => $localRepo->getZonePath( 'temp' ), 'url' => $localRepo->getZoneUrl( 'temp' ), 'thumbDir'=> $localRepo->getZonePath( 'thumb' ) . '/temp', 'thumbUrl' => $localRepo->getZoneUrl( 'thumb' ) . '/temp' ) ); |
77 | 77 | // $fileName can be like timestamp!name , strip the timestamp! part |
78 | 78 | $parts = explode( '!', $fileName, 2 ); |
79 | 79 | $strippedName = isset( $parts[1] ) ? $parts[1] : $fileName; |