Index: trunk/extensions/BotQuery/query.php |
— | — | @@ -584,13 +584,18 @@ |
585 | 585 | foreach( $params as $param ) { |
586 | 586 | $val = $wgRequest->getVal($param); |
587 | 587 | if( $val !== null ) { |
588 | | - if( strpos( 'from', $param ) === false ) { |
| 588 | + if( strpos( $param, 'from' ) === false && strpos( $param, 'title' ) === false) { |
589 | 589 | $paramVals[] = "$param=$val"; |
590 | 590 | } else { |
591 | 591 | $paramVals[] = $param; // ignore the value |
592 | 592 | } |
593 | 593 | } |
594 | 594 | } |
| 595 | + |
| 596 | + global $proxySite, $proxyLang; |
| 597 | + if ($proxySite) $paramVals[] = "proxySite=$proxySite"; |
| 598 | + if ($proxyLang) $paramVals[] = "proxyLang=$proxyLang"; |
| 599 | + |
595 | 600 | $paramStr = implode( '&', $paramVals ); |
596 | 601 | $perfVals = array(); |
597 | 602 | if( array_key_exists('perf', $this->data) ) { |