From: Raimond Spekking Date: Tue, 29 Jun 2010 14:37:39 +0000 (+0000) Subject: Follow-up r68719: Simplify a bit per suggestions of Nikerabbit. X-Git-Tag: 1.31.0-rc.0~36345 X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=commitdiff_plain;h=ac0d52614bf66ca2351968a0d87cb16670a063ac;p=lhc%2Fweb%2Fwiklou.git Follow-up r68719: Simplify a bit per suggestions of Nikerabbit. --- 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 ),