From 6bfe8bc13a311360f3d3d4c62b1c74993da0ad8e Mon Sep 17 00:00:00 2001 From: Adam Roses Wight Date: Sun, 18 May 2014 13:54:46 -0700 Subject: [PATCH] opportunity to reuse Title::getEditURL() This will be helpful if we want to make changes to the edit URL in the future. Change-Id: I6e877d23b041a2bd1672ae804e06bf6a52e16c9f --- includes/OutputPage.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/OutputPage.php b/includes/OutputPage.php index 72869e4b00..0f3612a89f 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -3269,13 +3269,13 @@ $templates 'rel' => 'alternate', 'type' => 'application/x-wiki', 'title' => $msg, - 'href' => $this->getTitle()->getLocalURL( 'action=edit' ) + 'href' => $this->getTitle()->getEditURL(), ) ); // Alternate edit link $tags['alternative-edit'] = Html::element( 'link', array( 'rel' => 'edit', 'title' => $msg, - 'href' => $this->getTitle()->getLocalURL( 'action=edit' ) + 'href' => $this->getTitle()->getEditURL(), ) ); } } -- 2.20.1