opportunity to reuse Title::getEditURL()
authorAdam Roses Wight <awight@wikimedia.org>
Sun, 18 May 2014 20:54:46 +0000 (13:54 -0700)
committerBartosz Dziewoński <matma.rex@gmail.com>
Mon, 19 May 2014 10:06:42 +0000 (10:06 +0000)
This will be helpful if we want to make changes to the edit URL in the future.

Change-Id: I6e877d23b041a2bd1672ae804e06bf6a52e16c9f

includes/OutputPage.php

index 72869e4..0f3612a 100644 (file)
@@ -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(),
                                ) );
                        }
                }