From 43c69819290801aeedeaee0a3c35a38c7fe458a6 Mon Sep 17 00:00:00 2001 From: Domas Mituzas Date: Mon, 7 Sep 2009 18:54:58 +0000 Subject: [PATCH] UniversalEditButton microoptimization :) --- includes/OutputPage.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/includes/OutputPage.php b/includes/OutputPage.php index ca5ea6d6a4..3adb63bb92 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -1120,16 +1120,17 @@ class OutputPage { if( isset( $wgArticle ) && $this->getTitle() && $this->getTitle()->quickUserCan( 'edit' ) && ( $this->getTitle()->exists() || $this->getTitle()->quickUserCan( 'create' ) ) ) { // Original UniversalEditButton + $msg = wfMsg('edit'); $this->addLink( array( 'rel' => 'alternate', 'type' => 'application/x-wiki', - 'title' => wfMsg( 'edit' ), + 'title' => $msg, 'href' => $this->getTitle()->getLocalURL( 'action=edit' ) ) ); // Alternate edit link $this->addLink( array( 'rel' => 'edit', - 'title' => wfMsg( 'edit' ), + 'title' => $msg, 'href' => $this->getTitle()->getLocalURL( 'action=edit' ) ) ); } -- 2.20.1