From: Andrew Garrett Date: Wed, 30 Sep 2009 18:44:37 +0000 (+0000) Subject: Replace hardcoded api.php with a call to wfScript(api) in a few places per comments... X-Git-Tag: 1.31.0-rc.0~39455 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=ea66a1f94977695d3def6a8e4908ab09a523a07e;p=lhc%2Fweb%2Fwiklou.git Replace hardcoded api.php with a call to wfScript(api) in a few places per comments on code-review r57120 --- diff --git a/includes/specials/SpecialWatchlist.php b/includes/specials/SpecialWatchlist.php index d43973d7d9..aeba3ca6b9 100644 --- a/includes/specials/SpecialWatchlist.php +++ b/includes/specials/SpecialWatchlist.php @@ -25,7 +25,7 @@ function wfSpecialWatchlist( $par ) { global $wgServer, $wgScriptPath, $wgFeedClasses; $apiParams = array( 'action' => 'feedwatchlist', 'allrev' => 'allrev', 'wlowner' => $wgUser->getName(), 'wltoken' => $wlToken ); - $feedTemplate = $wgServer . $wgScriptPath . '/api.php?'; + $feedTemplate = wfScript('api').'?'; foreach( $wgFeedClasses as $format => $class ) { $theseParams = $apiParams + array( 'feedformat' => $format );