Index: trunk/phase3/includes/filerepo/ForeignAPIRepo.php |
— | — | @@ -128,8 +128,7 @@ |
129 | 129 | $foreignUrl = $this->getThumbUrl( $name, $width, $height ); |
130 | 130 | |
131 | 131 | // We need the same filename as the remote one :) |
132 | | - $fileName = ltrim( substr( $foreignUrl, strrpos( $foreignUrl, '/' ), |
133 | | - strlen ( $foreignUrl ) ), '/' ); |
| 132 | + $fileName = ltrim( substr( $foreignUrl, strrpos( $foreignUrl, '/' ) ), '/' ); |
134 | 133 | $path = 'thumb/' . $this->getHashPath( $name ) . $name . "/"; |
135 | 134 | if ( !is_dir($wgUploadDirectory . '/' . $path) ) { |
136 | 135 | wfMkdirParents($wgUploadDirectory . '/' . $path); |