From 2c7d284a59600d0c5fb8276af11ac5051eed0c05 Mon Sep 17 00:00:00 2001 From: Raimond Spekking Date: Wed, 28 May 2008 19:51:18 +0000 Subject: [PATCH] * (bug 14146) Wrap usage section on imagepages into
s. --- RELEASE-NOTES | 1 + includes/ImagePage.php | 10 ++++++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 91b998caea..0c1a67d12d 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -130,6 +130,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * (bug 14259) Localisation message for upload button on Special:Import is now 'import-upload' instead of 'upload' * Add information about user group membership to Special:Preferences +* (bug 14146) Wrap usage section on imagepages into
s. === Bug fixes in 1.13 === diff --git a/includes/ImagePage.php b/includes/ImagePage.php index 3b1795cdee..aeb857ee00 100644 --- a/includes/ImagePage.php +++ b/includes/ImagePage.php @@ -647,6 +647,7 @@ EOT $wgOut->addWikiMsg( 'nolinkstoimage' ); return; } + $wgOut->addHTML( "
\n" ); $wgOut->addWikiMsg( 'linkstoimage' ); $wgOut->addHTML( "
    \n" ); @@ -661,7 +662,7 @@ EOT $wgOut->addHTML( "
  • {$link}
  • \n" ); } } - $wgOut->addHTML( "
\n" ); + $wgOut->addHTML( "
\n" ); $res->free(); // Add a links to [[Special:Whatlinkshere]] @@ -675,8 +676,8 @@ EOT $redirects = $this->getTitle()->getRedirectsHere( NS_IMAGE ); if ( count( $redirects ) == 0 ) return; - + $wgOut->addHTML( "
\n" ); $wgOut->addWikiMsg( 'redirectstofile' ); $wgOut->addHTML( "
    \n" ); @@ -685,7 +686,7 @@ EOT $link = $sk->makeKnownLinkObj( $title, "" ); $wgOut->addHTML( "
  • {$link}
  • \n" ); } - $wgOut->addHTML( "
\n" ); + $wgOut->addHTML( "
\n" ); } @@ -697,6 +698,7 @@ EOT $dupes = $this->getDuplicates(); if ( count( $dupes ) == 0 ) return; + $wgOut->addHTML( "
\n" ); $wgOut->addWikiMsg( 'duplicatesoffile' ); $wgOut->addHTML( "
    \n" ); @@ -709,7 +711,7 @@ EOT $file->getTitle()->getPrefixedText() ); $wgOut->addHTML( "
  • {$link}
  • \n" ); } - $wgOut->addHTML( "
\n" ); + $wgOut->addHTML( "
\n" ); } /** -- 2.20.1