Index: trunk/extensions/OggHandler/OggHandler_body.php |
— | — | @@ -192,8 +192,8 @@ |
193 | 193 | $height = empty( $params['height'] ) ? 20 : $params['height']; |
194 | 194 | if ( $noPlayer ) { |
195 | 195 | if ( $height > 100 ) { |
196 | | - global $wgScriptPath; |
197 | | - $iconUrl = "$wgScriptPath/skins/common/images/icons/fileicon-ogg.png"; |
| 196 | + global $wgStylePath; |
| 197 | + $iconUrl = "$wgStylePath/common/images/icons/fileicon-ogg.png"; |
198 | 198 | return new ThumbnailImage( $file, $iconUrl, 120, 120 ); |
199 | 199 | } else { |
200 | 200 | $scriptPath = self::getMyScriptPath(); |
— | — | @@ -498,9 +498,9 @@ |
499 | 499 | // Sound file |
500 | 500 | if ( $height > 100 ) { |
501 | 501 | // Use a big file icon |
502 | | - global $wgScriptPath; |
| 502 | + global $wgStylePath; |
503 | 503 | $imgAttribs = array( |
504 | | - 'src' => "$wgScriptPath/skins/common/images/icons/fileicon-ogg.png", |
| 504 | + 'src' => "$wgStylePath/common/images/icons/fileicon-ogg.png", |
505 | 505 | 'width' => 125, |
506 | 506 | 'height' => 125, |
507 | 507 | ); |