Use Linker::makeKnownLinkObj(); we have a Title object, and it's faster
authorRob Church <robchurch@users.mediawiki.org>
Wed, 27 Jun 2007 02:49:27 +0000 (02:49 +0000)
committerRob Church <robchurch@users.mediawiki.org>
Wed, 27 Jun 2007 02:49:27 +0000 (02:49 +0000)
includes/SpecialLog.php

index 2d2b18f..9a4e543 100644 (file)
@@ -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' ) {