r26429 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r26428‎ | r26429 | r26430 >
Date:06:12, 5 October 2007
Author:david
Status:old
Tags:
Comment:
older and newer links in thread history now actually work (not sure how this got through testing before...)
Modified paths:
  • /branches/liquidthreads/extensions/LqtBaseView.php (modified) (history)

Diff [purge]

Index: branches/liquidthreads/extensions/LqtBaseView.php
@@ -252,14 +252,18 @@
253253 function queryReplace( $repls ) {
254254 $vs = $this->request->getValues();
255255 $rs = array();
256 - foreach ($vs as $k => $v) {
 256+/* foreach ($vs as $k => $v) {
257257 if ( array_key_exists( $k, $repls ) ) {
258258 $rs[$k] = $repls[$k];
259259 } else {
260260 $rs[$k] = $vs[$k];
261261 }
262262 }
263 - return $this->title->getFullURL(self::queryStringFromArray($rs));
 263+*/
 264+ foreach ( $repls as $k => $v ) {
 265+ $vs[$k] = $v;
 266+ }
 267+ return $this->title->getFullURL(self::queryStringFromArray($vs));
264268 }
265269
266270 /*************************************************************

Status & tagging log