r55988 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r55987‎ | r55988 | r55989 >
Date:18:54, 7 September 2009
Author:midom
Status:ok
Tags:
Comment:
UniversalEditButton microoptimization :)
Modified paths:
  • /trunk/phase3/includes/OutputPage.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/OutputPage.php
@@ -1120,16 +1120,17 @@
11211121 if( isset( $wgArticle ) && $this->getTitle() && $this->getTitle()->quickUserCan( 'edit' )
11221122 && ( $this->getTitle()->exists() || $this->getTitle()->quickUserCan( 'create' ) ) ) {
11231123 // Original UniversalEditButton
 1124+ $msg = wfMsg('edit');
11241125 $this->addLink( array(
11251126 'rel' => 'alternate',
11261127 'type' => 'application/x-wiki',
1127 - 'title' => wfMsg( 'edit' ),
 1128+ 'title' => $msg,
11281129 'href' => $this->getTitle()->getLocalURL( 'action=edit' )
11291130 ) );
11301131 // Alternate edit link
11311132 $this->addLink( array(
11321133 'rel' => 'edit',
1133 - 'title' => wfMsg( 'edit' ),
 1134+ 'title' => $msg,
11341135 'href' => $this->getTitle()->getLocalURL( 'action=edit' )
11351136 ) );
11361137 }

Status & tagging log