From a8a0f8a1d0ec41adce80b738cb36e047ebb83243 Mon Sep 17 00:00:00 2001 From: Rob Church Date: Wed, 27 Jun 2007 02:49:27 +0000 Subject: [PATCH] Use Linker::makeKnownLinkObj(); we have a Title object, and it's faster --- includes/SpecialLog.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/includes/SpecialLog.php b/includes/SpecialLog.php index 2d2b18fbe1..9a4e543d62 100644 --- a/includes/SpecialLog.php +++ b/includes/SpecialLog.php @@ -397,9 +397,7 @@ class LogViewer { 'action=unblock&ip=' . urlencode( $s->log_title ) ) . ')'; // show change protection link } elseif ( ( $s->log_action == 'protect' || $s->log_action == 'modify' ) && $wgUser->isAllowed( 'protect' ) ) { - $revert = '(' . $skin->makeKnownLink( $title->getPrefixedDBkey() , - wfMsg( 'protect_change' ), - 'action=unprotect' ) . ')'; + $revert = '(' . $skin->makeKnownLinkObj( $title, wfMsg( 'protect_change' ), 'action=unprotect' ) . ')'; // show user tool links for self created users // TODO: The extension should be handling this, get it out of core! } elseif ( $s->log_action == 'create2' ) { -- 2.20.1