From: Domas Mituzas Date: Mon, 7 Sep 2009 18:54:58 +0000 (+0000) Subject: UniversalEditButton microoptimization :) X-Git-Tag: 1.31.0-rc.0~39871 X-Git-Url: http://git.cyclocoop.org/%24self?a=commitdiff_plain;h=43c69819290801aeedeaee0a3c35a38c7fe458a6;p=lhc%2Fweb%2Fwiklou.git UniversalEditButton microoptimization :) --- 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' ) ) ); }