r47583 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r47582‎ | r47583 | r47584 >
Date:20:49, 20 February 2009
Author:catrope
Status:ok
Tags:
Comment:
(bug 17538) Use local URLs in <link>s
Modified paths:
  • /trunk/phase3/RELEASE-NOTES (modified) (history)
  • /trunk/phase3/includes/OutputPage.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/OutputPage.php
@@ -938,13 +938,13 @@
939939 'rel' => 'alternate',
940940 'type' => 'application/x-wiki',
941941 'title' => wfMsg( 'edit' ),
942 - 'href' => $wgTitle->getFullURL( 'action=edit' )
 942+ 'href' => $wgTitle->getLocalURL( 'action=edit' )
943943 ) );
944944 // Alternate edit link
945945 $this->addLink( array(
946946 'rel' => 'edit',
947947 'title' => wfMsg( 'edit' ),
948 - 'href' => $wgTitle->getFullURL( 'action=edit' )
 948+ 'href' => $wgTitle->getLocalURL( 'action=edit' )
949949 ) );
950950 }
951951 }
@@ -1597,7 +1597,7 @@
15981598 foreach( $wgFeedClasses as $format => $class ) {
15991599 $tags[] = $this->feedLink(
16001600 $format,
1601 - $rctitle->getFullURL( "feed={$format}" ),
 1601+ $rctitle->getLocalURL( "feed={$format}" ),
16021602 wfMsg( "site-{$format}-feed", $wgSitename ) ); # For grep: 'site-rss-feed', 'site-atom-feed'.
16031603 }
16041604 }
Index: trunk/phase3/RELEASE-NOTES
@@ -206,6 +206,7 @@
207207 * (bug 17581) Wrong index name in PostgreSQL's updater: was rc_timestamp_nobot,
208208 changed to rc_timestamp_bot
209209 * (bug 17437) Fixed incorrect link to web-based installer
 210+* (bug 17538) Use shorter URLs in <link> elements
210211
211212 == API changes in 1.15 ==
212213 * (bug 16858) Revamped list=deletedrevs to make listing deleted contributions

Status & tagging log