From ea66a1f94977695d3def6a8e4908ab09a523a07e Mon Sep 17 00:00:00 2001 From: Andrew Garrett Date: Wed, 30 Sep 2009 18:44:37 +0000 Subject: [PATCH] Replace hardcoded api.php with a call to wfScript(api) in a few places per comments on code-review r57120 --- includes/specials/SpecialWatchlist.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ); -- 2.20.1