* linkstoimage
* nolinkstoimage
* redirectstofile
Two of these were previously raw-HTML paragraphs, and had div classes stuck on them on eg English Wikipedia.
r34507 changed them into plaintext, breaking them.
Since image pages are already swathed with little wiki bits (meta table, other various bits), shouldn't be any harm in making these properly flexible wiki messages.
);
if ( 0 == $dbr->numRows( $res ) ) {
);
if ( 0 == $dbr->numRows( $res ) ) {
- $wgOut->addHtml( Xml::element('p', null ,wfMsg( "nolinkstoimage" ) )."\n" );
+ $wgOut->addWikiMsg( 'nolinkstoimage' );
- $wgOut->addHTML( Xml::element('p', null, wfMsg( 'linkstoimage' ) )."\n" );
- $wgOut->addHTML( Xml::openElement( 'ul' ));
+ $wgOut->addWikiMsg( 'linkstoimage' );
+ $wgOut->addHTML( "<ul>\n" );
$sk = $wgUser->getSkin();
$count = 0;
$sk = $wgUser->getSkin();
$count = 0;
// Add a links to [[Special:Whatlinkshere]]
if ( $count > $limit )
// Add a links to [[Special:Whatlinkshere]]
if ( $count > $limit )
- $wgOut->addWikiText( wfMsg( 'morelinkstoimage', $this->mTitle->getPrefixedDBkey() ) );
+ $wgOut->addWikiMsg( 'morelinkstoimage', $this->mTitle->getPrefixedDBkey() );
}
function imageRedirects()
}
function imageRedirects()
if ( 0 == $dbr->numRows( $res ) )
return;
if ( 0 == $dbr->numRows( $res ) )
return;
- $wgOut->addHTML( '<p>' . wfMsg( 'redirectstofile' ) . "</p>\n<ul>" );
+ $wgOut->addWikiMsg( 'redirectstofile' );
+ $wgOut->addHTML( "<ul>\n" );
$sk = $wgUser->getSkin();
while ( $row = $dbr->fetchObject( $res ) ) {
$sk = $wgUser->getSkin();
while ( $row = $dbr->fetchObject( $res ) ) {