Index: trunk/phase3/includes/ImagePage.php |
— | — | @@ -645,17 +645,17 @@ |
646 | 646 | $wgOut->addWikiMsg( 'nolinkstoimage' ); |
647 | 647 | $wgOut->addHTML( "</div>\n" ); |
648 | 648 | return; |
649 | | - } elseif ( $count <= $limit - 1 ) { |
650 | | - $wgOut->addHTML( "<div id='mw-imagepage-section-linkstoimage'>\n" ); |
| 649 | + } |
| 650 | + |
| 651 | + $wgOut->addHTML( "<div id='mw-imagepage-section-linkstoimage'>\n" ); |
| 652 | + if ( $count <= $limit - 1 ) { |
651 | 653 | $wgOut->addWikiMsg( 'linkstoimage', $count ); |
652 | | - $wgOut->addHTML( "<ul class='mw-imagepage-linktoimage'>\n" ); |
653 | 654 | } else { |
654 | 655 | // More links than the limit. Add a link to [[Special:Whatlinkshere]] |
655 | | - $wgOut->addHTML( "<div id='mw-imagepage-section-linkstoimage'>\n" ); |
656 | 656 | $wgOut->addWikiMsg( 'linkstoimage-more', $limit, $this->mTitle->getPrefixedDBkey() ); |
657 | | - $wgOut->addHTML( "<ul class='mw-imagepage-linktoimage'>\n" ); |
658 | 657 | } |
659 | 658 | |
| 659 | + $wgOut->addHTML( "<ul class='mw-imagepage-linktoimage'>\n" ); |
660 | 660 | $sk = $wgUser->getSkin(); |
661 | 661 | $count = 0; |
662 | 662 | while ( $s = $res->fetchObject() ) { |