From ac0d52614bf66ca2351968a0d87cb16670a063ac Mon Sep 17 00:00:00 2001 From: Raimond Spekking Date: Tue, 29 Jun 2010 14:37:39 +0000 Subject: [PATCH] Follow-up r68719: Simplify a bit per suggestions of Nikerabbit. --- includes/ImagePage.php | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/includes/ImagePage.php b/includes/ImagePage.php index 48221e12e4..a696755fbd 100644 --- a/includes/ImagePage.php +++ b/includes/ImagePage.php @@ -629,8 +629,7 @@ EOT ); $count = $dbr->numRows( $res ); if ( $count == 0 ) { - $wgOut->addHTML( Html::rawElement( 'div', array ( 'id' => 'mw-imagepage-nolinkstoimage' ), - wfMsg( 'nolinkstoimage' ) ) ) . "\n"; + $wgOut->wrapWikiMsg( Html::rawElement( 'div', array ( 'id' => 'mw-imagepage-nolinkstoimage' ), "\n$1\n" ), 'nolinkstoimage' ); return; } @@ -662,13 +661,7 @@ EOT // Create links for every element foreach( $elements as $element ) { - $link = $sk->link( - Title::makeTitle( $element->page_namespace, $element->page_title ), - null, - array(), - array(), - array( 'known', 'noclasses' ) - ); + $link = $sk->linkKnown( Title::makeTitle( $element->page_namespace, $element->page_title ) ); $wgOut->addHTML( Html::rawElement( 'li', array( 'id' => 'mw-imagepage-linkstoimage-ns' . $element->page_namespace ), -- 2.20.1