Index: trunk/phase3/includes/filerepo/ForeignAPIFile.php |
— | — | @@ -24,7 +24,7 @@ |
25 | 25 | |
26 | 26 | static function newFromTitle( $title, $repo ) { |
27 | 27 | $data = $repo->fetchImageQuery( array( |
28 | | - 'titles' => 'File:' . $title->getText(), |
| 28 | + 'titles' => 'File:' . $title->getDBKey(), |
29 | 29 | 'iiprop' => self::getProps(), |
30 | 30 | 'prop' => 'imageinfo' ) ); |
31 | 31 | |
— | — | @@ -155,7 +155,7 @@ |
156 | 156 | function getThumbPath( $suffix = '' ) { |
157 | 157 | if ( $this->repo->canCacheThumbs() ) { |
158 | 158 | global $wgUploadDirectory; |
159 | | - $path = $wgUploadDirectory . '/thumb/' . $this->getHashPath( $this->getName() ); |
| 159 | + $path = $this->repo->getZonePath('thumb') . '/' . $this->getHashPath( $this->getName() ); |
160 | 160 | if ( $suffix ) { |
161 | 161 | $path = $path . $suffix . '/'; |
162 | 162 | } |