Index: trunk/extensions/SpecialFileList/SpecialFilelist.php |
— | — | @@ -223,7 +223,7 @@ |
224 | 224 | $ul = $this->sk->makeLinkObj( Title::makeTitle( NS_USER, $ut ), $ut ); |
225 | 225 | } |
226 | 226 | |
227 | | - $ilink = "<a href=\"" . htmlspecialchars( Image::imageUrl( $name ) ) . |
| 227 | + $ilink = "<a href=\"" . htmlspecialchars( wfLocalFile( $name )->getUrl() ) . |
228 | 228 | "\">" . strtr(htmlspecialchars( $name ), '_', ' ') . "</a>"; |
229 | 229 | |
230 | 230 | $nb = wfMsg( "nbytes", $wgLang->formatNum( $s->img_size ) ); |
Index: trunk/extensions/WebStore/store.php |
— | — | @@ -46,7 +46,7 @@ |
47 | 47 | $name = $wgRequest->getFileName( 'file' ); |
48 | 48 | $n = strrpos( $name, '.' ); |
49 | 49 | if ( $n ) { |
50 | | - $extension = '.' . Image::normalizeExtension( substr( $name, $n + 1 ) ); |
| 50 | + $extension = '.' . File::normalizeExtension( substr( $name, $n + 1 ) ); |
51 | 51 | } else { |
52 | 52 | $extension = ''; |
53 | 53 | } |
Index: trunk/extensions/WebStore/metadata.php |
— | — | @@ -48,7 +48,7 @@ |
49 | 49 | |
50 | 50 | $name = basename( $fullPath ); |
51 | 51 | $i = strrpos( $name, '.' ); |
52 | | - $ext = Image::normalizeExtension( $i ? substr( $name, $i + 1 ) : '' ); |
| 52 | + $ext = File::normalizeExtension( $i ? substr( $name, $i + 1 ) : '' ); |
53 | 53 | $magic = MimeMagic::singleton(); |
54 | 54 | $mime = $magic->guessTypesForExtension( $ext ); |
55 | 55 | $type = $magic->getMediaType( $fullPath, $mime); |
Index: trunk/extensions/WebStore/inplace-scaler.php |
— | — | @@ -64,7 +64,7 @@ |
65 | 65 | } |
66 | 66 | |
67 | 67 | $i = strrpos( $name, '.' ); |
68 | | - $ext = Image::normalizeExtension( $i ? substr( $name, $i + 1 ) : '' ); |
| 68 | + $ext = File::normalizeExtension( $i ? substr( $name, $i + 1 ) : '' ); |
69 | 69 | |
70 | 70 | $magic = MimeMagic::singleton(); |
71 | 71 | $mime = $magic->guessTypesForExtension( $ext ); |