Replace hardcoded api.php with a call to wfScript(api) in a few places per comments...
authorAndrew Garrett <werdna@users.mediawiki.org>
Wed, 30 Sep 2009 18:44:37 +0000 (18:44 +0000)
committerAndrew Garrett <werdna@users.mediawiki.org>
Wed, 30 Sep 2009 18:44:37 +0000 (18:44 +0000)
includes/specials/SpecialWatchlist.php

index d43973d..aeba3ca 100644 (file)
@@ -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 );