From: Rob Church Date: Wed, 27 Jun 2007 02:49:27 +0000 (+0000) Subject: Use Linker::makeKnownLinkObj(); we have a Title object, and it's faster X-Git-Tag: 1.31.0-rc.0~52378 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dmes_infos.php?a=commitdiff_plain;h=a8a0f8a1d0ec41adce80b738cb36e047ebb83243;p=lhc%2Fweb%2Fwiklou.git Use Linker::makeKnownLinkObj(); we have a Title object, and it's faster --- 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' ) {