r15824 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r15823‎ | r15824 | r15825 >
Date:07:35, 26 July 2006
Author:yurik
Status:old
Tags:
Comment:
* FIX: logging cleanup, added proxy params
Modified paths:
  • /trunk/extensions/BotQuery/query.php (modified) (history)

Diff [purge]

Index: trunk/extensions/BotQuery/query.php
@@ -584,13 +584,18 @@
585585 foreach( $params as $param ) {
586586 $val = $wgRequest->getVal($param);
587587 if( $val !== null ) {
588 - if( strpos( 'from', $param ) === false ) {
 588+ if( strpos( $param, 'from' ) === false && strpos( $param, 'title' ) === false) {
589589 $paramVals[] = "$param=$val";
590590 } else {
591591 $paramVals[] = $param; // ignore the value
592592 }
593593 }
594594 }
 595+
 596+ global $proxySite, $proxyLang;
 597+ if ($proxySite) $paramVals[] = "proxySite=$proxySite";
 598+ if ($proxyLang) $paramVals[] = "proxyLang=$proxyLang";
 599+
595600 $paramStr = implode( '&', $paramVals );
596601 $perfVals = array();
597602 if( array_key_exists('perf', $this->data) ) {