* (bug 14146) Wrap usage section on imagepages into <div>s.
authorRaimond Spekking <raymond@users.mediawiki.org>
Wed, 28 May 2008 19:51:18 +0000 (19:51 +0000)
committerRaimond Spekking <raymond@users.mediawiki.org>
Wed, 28 May 2008 19:51:18 +0000 (19:51 +0000)
RELEASE-NOTES
includes/ImagePage.php

index 91b998c..0c1a67d 100644 (file)
@@ -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 <div>s.
 
 === Bug fixes in 1.13 ===
 
index 3b1795c..aeb857e 100644 (file)
@@ -647,6 +647,7 @@ EOT
                        $wgOut->addWikiMsg( 'nolinkstoimage' );
                        return;
                }
+               $wgOut->addHTML( "<div id='mw-imagepage-section-linkstoimage'>\n" );
                $wgOut->addWikiMsg( 'linkstoimage' );
                $wgOut->addHTML( "<ul class='mw-imagepage-linktoimage'>\n" );
 
@@ -661,7 +662,7 @@ EOT
                                $wgOut->addHTML( "<li>{$link}</li>\n" );
                        }
                }
-               $wgOut->addHTML( "</ul>\n" );
+               $wgOut->addHTML( "</ul></div>\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( "<div id='mw-imagepage-section-redirectstofile'>\n" );
                $wgOut->addWikiMsg( 'redirectstofile' );
                $wgOut->addHTML( "<ul class='mw-imagepage-redirectstofile'>\n" );
 
@@ -685,7 +686,7 @@ EOT
                        $link = $sk->makeKnownLinkObj( $title, "" );
                        $wgOut->addHTML( "<li>{$link}</li>\n" );
                }
-               $wgOut->addHTML( "</ul>\n" );
+               $wgOut->addHTML( "</ul></div>\n" );
 
        }
        
@@ -697,6 +698,7 @@ EOT
                $dupes = $this->getDuplicates();
                if ( count( $dupes ) == 0 ) return;
 
+               $wgOut->addHTML( "<div id='mw-imagepage-section-duplicates'>\n" );
                $wgOut->addWikiMsg( 'duplicatesoffile' );
                $wgOut->addHTML( "<ul class='mw-imagepage-duplicates'>\n" );
 
@@ -709,7 +711,7 @@ EOT
                                        $file->getTitle()->getPrefixedText() );
                        $wgOut->addHTML( "<li>{$link}</li>\n" );
                }
-               $wgOut->addHTML( "</ul>\n" );
+               $wgOut->addHTML( "</ul></div>\n" );
        }
 
        /**