* replace use of deprecated makeKnownLinkObj() by linkKnown() in core special pages
[lhc/web/wiklou.git] / includes / specials / SpecialNewpages.php
index c970fdf..20cb120 100644 (file)
@@ -255,9 +255,24 @@ class SpecialNewpages extends SpecialPage {
 
                $title = Title::makeTitleSafe( $result->rc_namespace, $result->rc_title );
                $time = htmlspecialchars( $wgLang->timeAndDate( $result->rc_timestamp, true ) );
-               $query = $this->patrollable( $result ) ? "rcid={$result->rc_id}&redirect=no" : 'redirect=no';
-               $plink = $this->skin->makeKnownLinkObj( $title, '', $query );
-               $hist = $this->skin->makeKnownLinkObj( $title, wfMsgHtml( 'hist' ), 'action=history' );
+
+               $query = array( 'redirect' => 'no' );
+
+               if( $this->patrollable( $result ) )
+                       $query['rcid'] = $result->rc_id;
+
+               $plink = $this->skin->linkKnown(
+                       $title,
+                       null,
+                       array(),
+                       $query
+               );
+               $hist = $this->skin->linkKnown(
+                       $title,
+                       wfMsgHtml( 'hist' ),
+                       array(),
+                       array( 'action' => 'history' )
+               );
                $length = wfMsgExt( 'nbytes', array( 'parsemag', 'escape' ),
                        $wgLang->formatNum( $result->length ) );
                $ulink = $this->skin->userLink( $result->rc_user, $result->rc_user_text ) . ' ' .