Get rid of wfScript in MediaWikiSite::normalizePageName
authorTobias Gritschacher <tobias.gritschacher@wikimedia.de>
Mon, 15 Apr 2013 09:50:07 +0000 (11:50 +0200)
committerTobias Gritschacher <tobias.gritschacher@wikimedia.de>
Mon, 15 Apr 2013 09:50:07 +0000 (11:50 +0200)
wfScript should not be used to construct URLs for calls to other wikis

Bug: 47242
Change-Id: Id5aaa58f10d513e082b217aeb8d88b8228341a48

includes/site/MediaWikiSite.php

index 4cd48b8..98004a2 100644 (file)
@@ -130,7 +130,7 @@ class MediaWikiSite extends Site {
                                // Also consider smaxage if maxage is used.
                        );
 
-                       $url = wfAppendQuery( $this->getFileUrl( wfScript( 'api' ) ), $args );
+                       $url = wfAppendQuery( $this->getFileUrl( 'api.php' ), $args );
 
                        // Go on call the external site
                        //@todo: we need a good way to specify a timeout here.