* (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 ===
$wgOut->addWikiMsg( 'nolinkstoimage' );
return;
}
+ $wgOut->addHTML( "<div id='mw-imagepage-section-linkstoimage'>\n" );
$wgOut->addWikiMsg( 'linkstoimage' );
$wgOut->addHTML( "<ul class='mw-imagepage-linktoimage'>\n" );
$wgOut->addHTML( "<li>{$link}</li>\n" );
}
}
- $wgOut->addHTML( "</ul>\n" );
+ $wgOut->addHTML( "</ul></div>\n" );
$res->free();
// Add a links to [[Special:Whatlinkshere]]
$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" );
$link = $sk->makeKnownLinkObj( $title, "" );
$wgOut->addHTML( "<li>{$link}</li>\n" );
}
- $wgOut->addHTML( "</ul>\n" );
+ $wgOut->addHTML( "</ul></div>\n" );
}
$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" );
$file->getTitle()->getPrefixedText() );
$wgOut->addHTML( "<li>{$link}</li>\n" );
}
- $wgOut->addHTML( "</ul>\n" );
+ $wgOut->addHTML( "</ul></div>\n" );
}
/**