Index: trunk/phase3/RELEASE-NOTES-1.19 |
— | — | @@ -239,6 +239,7 @@ |
240 | 240 | the edit. |
241 | 241 | * (bug 33902) Decoding %2B with mw.Uri.decode results in ' ' instead of + |
242 | 242 | * (bug 33762) QueryPage-based special pages no longer misses *-summary message. |
| 243 | +* Other sizes links are no longer generated for wikis without a 404 thumbnail handler. |
243 | 244 | |
244 | 245 | === API changes in 1.19 === |
245 | 246 | * Made action=edit less likely to return "unknownerror", by returning the actual error |
Index: trunk/phase3/includes/ImagePage.php |
— | — | @@ -330,11 +330,14 @@ |
331 | 331 | } |
332 | 332 | $msgsmall = wfMessage( 'show-big-image-preview' )-> |
333 | 333 | rawParams( $this->makeSizeLink( $params, $width, $height ) )-> |
334 | | - parse() . ' ' . |
| 334 | + parse(); |
| 335 | + if ( count( $otherSizes ) && $this->displayImg->getRepo()->transformVia404 ) { |
| 336 | + $msgsmall .= ' ' . |
335 | 337 | Html::rawElement( 'span', array( 'class' => 'mw-filepage-other-resolutions' ), |
336 | 338 | wfMessage( 'show-big-image-other' )->rawParams( $wgLang->pipeList( $otherSizes ) )-> |
337 | 339 | params( count( $otherSizes ) )->parse() |
338 | 340 | ); |
| 341 | + } |
339 | 342 | } elseif ( $width == 0 && $height == 0 ){ |
340 | 343 | # Some sort of audio file that doesn't have dimensions |
341 | 344 | # Don't output a no hi res message for such a file |