(bug 17538) Use local URLs in <link>s
authorRoan Kattouw <catrope@users.mediawiki.org>
Fri, 20 Feb 2009 20:49:47 +0000 (20:49 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Fri, 20 Feb 2009 20:49:47 +0000 (20:49 +0000)
RELEASE-NOTES
includes/OutputPage.php

index c22e4fc..51b49f5 100644 (file)
@@ -206,6 +206,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * (bug 17581) Wrong index name in PostgreSQL's updater: was rc_timestamp_nobot,
   changed to rc_timestamp_bot
 * (bug 17437) Fixed incorrect link to web-based installer
+* (bug 17538) Use shorter URLs in <link> elements
 
 == API changes in 1.15 ==
 * (bug 16858) Revamped list=deletedrevs to make listing deleted contributions
index 3862e3f..a05fdbe 100644 (file)
@@ -938,13 +938,13 @@ class OutputPage {
                                        'rel' => 'alternate',
                                        'type' => 'application/x-wiki',
                                        'title' => wfMsg( 'edit' ),
-                                       'href' => $wgTitle->getFullURL( 'action=edit' )
+                                       'href' => $wgTitle->getLocalURL( 'action=edit' )
                                ) );
                                // Alternate edit link
                                $this->addLink( array(
                                        'rel' => 'edit',
                                        'title' => wfMsg( 'edit' ),
-                                       'href' => $wgTitle->getFullURL( 'action=edit' )
+                                       'href' => $wgTitle->getLocalURL( 'action=edit' )
                                ) );
                        }
                }
@@ -1597,7 +1597,7 @@ class OutputPage {
                                foreach( $wgFeedClasses as $format => $class ) {
                                        $tags[] = $this->feedLink(
                                                $format,
-                                               $rctitle->getFullURL( "feed={$format}" ),
+                                               $rctitle->getLocalURL( "feed={$format}" ),
                                                wfMsg( "site-{$format}-feed", $wgSitename ) ); # For grep: 'site-rss-feed', 'site-atom-feed'.
                                }
                        }