From: Tobias Gritschacher Date: Mon, 15 Apr 2013 09:50:07 +0000 (+0200) Subject: Get rid of wfScript in MediaWikiSite::normalizePageName X-Git-Tag: 1.31.0-rc.0~20003 X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=commitdiff_plain;h=978c8d9b5f0f1e1b455fb3e3bfbcba6476009e91;p=lhc%2Fweb%2Fwiklou.git Get rid of wfScript in MediaWikiSite::normalizePageName wfScript should not be used to construct URLs for calls to other wikis Bug: 47242 Change-Id: Id5aaa58f10d513e082b217aeb8d88b8228341a48 --- diff --git a/includes/site/MediaWikiSite.php b/includes/site/MediaWikiSite.php index 4cd48b88e3..98004a2967 100644 --- a/includes/site/MediaWikiSite.php +++ b/includes/site/MediaWikiSite.php @@ -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.