From: Adam Roses Wight Date: Sun, 18 May 2014 20:54:46 +0000 (-0700) Subject: opportunity to reuse Title::getEditURL() X-Git-Tag: 1.31.0-rc.0~15665 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/cotisations/rappels.php?a=commitdiff_plain;h=6bfe8bc13a311360f3d3d4c62b1c74993da0ad8e;p=lhc%2Fweb%2Fwiklou.git 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 --- 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(), ) ); } }