From 41787336235a6ef5ab98ab44095e8eee0ff6a414 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Thu, 29 Oct 2009 06:11:03 +0000 Subject: [PATCH] Use revDeleteLink() to remove duplication --- includes/Article.php | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/includes/Article.php b/includes/Article.php index 50b1c5a4c1..6e993fca14 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -3459,22 +3459,14 @@ class Article { // If revision was hidden from sysops $cdel = wfMsgHtml( 'rev-delundel' ); } else { - $cdel = $sk->link( - SpecialPage::getTitleFor( 'Revisiondelete' ), - wfMsgHtml('rev-delundel'), - array(), - array( - 'type' => 'revision', - 'target' => urlencode( $this->mTitle->getPrefixedDbkey() ), - 'ids' => urlencode( $oldid ) - ), - array( 'known', 'noclasses' ) + $query = array( + 'type' => 'revision', + 'target' => urlencode( $this->mTitle->getPrefixedDbkey() ), + 'ids' => urlencode( $oldid ) ); - // Bolden oversighted content - if( $revision->isDeleted( Revision::DELETED_RESTRICTED ) ) - $cdel = "$cdel"; + $cdel = $sk->revDeleteLink( $query, $revision->isDeleted(File::DELETED_RESTRICTED) ); } - $cdel = "($cdel) "; + $cdel .= ' '; } $unhide = $wgRequest->getInt('unhide') == 1 && $wgUser->matchEditToken( $wgRequest->getVal('token'), $oldid ); # Show user links if allowed to see them. If hidden, then show them only if requested... -- 2.20.1