Index: trunk/phase3/includes/specials/SpecialWatchlist.php |
— | — | @@ -25,7 +25,7 @@ |
26 | 26 | global $wgServer, $wgScriptPath, $wgFeedClasses; |
27 | 27 | $apiParams = array( 'action' => 'feedwatchlist', 'allrev' => 'allrev', |
28 | 28 | 'wlowner' => $wgUser->getName(), 'wltoken' => $wlToken ); |
29 | | - $feedTemplate = $wgServer . $wgScriptPath . '/api.php?'; |
| 29 | + $feedTemplate = wfScript('api').'?'; |
30 | 30 | |
31 | 31 | foreach( $wgFeedClasses as $format => $class ) { |
32 | 32 | $theseParams = $apiParams + array( 'feedformat' => $format ); |
Index: trunk/extensions/LiquidThreads/pages/ThreadPermalinkView.php |
— | — | @@ -143,7 +143,7 @@ |
144 | 144 | $thread = $this->thread->topmostThread()->title()->getPrefixedText(); |
145 | 145 | $apiParams = array( 'action' => 'feedthreads', 'type' => 'replies|newthreads', |
146 | 146 | 'thread' => $thread ); |
147 | | - $urlPrefix = $wgServer . $wgScriptPath."/api.php?"; |
| 147 | + $urlPrefix = wfScript('api').'?'; |
148 | 148 | foreach( $wgFeedClasses as $format => $class ) { |
149 | 149 | $theseParams = $apiParams + array( 'feedformat' => $format ); |
150 | 150 | $url = $urlPrefix . wfArrayToCGI( $theseParams ); |
Index: trunk/extensions/LiquidThreads/pages/TalkpageView.php |
— | — | @@ -187,7 +187,7 @@ |
188 | 188 | global $wgFeedClasses, $wgScriptPath, $wgServer; |
189 | 189 | $apiParams = array( 'action' => 'feedthreads', 'type' => 'replies|newthreads', |
190 | 190 | 'talkpage' => $this->title->getPrefixedText() ); |
191 | | - $urlPrefix = $wgServer . $wgScriptPath."/api.php?"; |
| 191 | + $urlPrefix = wfScript('api').'?'; |
192 | 192 | foreach( $wgFeedClasses as $format => $class ) { |
193 | 193 | $theseParams = $apiParams + array( 'feedformat' => $format ); |
194 | 194 | $url = $urlPrefix . wfArrayToCGI( $theseParams ); |