r22862 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r22861‎ | r22862 | r22863 >
Date:06:57, 9 June 2007
Author:david
Status:old
Tags:
Comment:
Fixed bug regarding the 'recently archived' query. Misc. reformatting.
Modified paths:
  • /branches/liquidthreads/extensions/LqtExtension.php (modified) (history)
  • /branches/liquidthreads/extensions/LqtModel.php (modified) (history)

Diff [purge]

Index: branches/liquidthreads/extensions/LqtExtension.php
@@ -15,7 +15,6 @@
1616 require_once('LqtModel.php');
1717
1818 class LqtDispatch {
19 - /* Invoked from performAction() in Wiki.php if this is a discussion namespace. */
2019 static function talkpageMain(&$output, &$talk_article, &$title, &$user, &$request) {
2120 // We are given a talkpage article and title. Find the associated
2221 // non-talk article and pass that to the view.
@@ -731,9 +730,11 @@
732731 <form id="lqt_archive_search_form" action="{$this->title->getLocalURL()}">
733732 <input type="hidden" name="lqt_show_archive" value="1">
734733 <input type="hidden" name="title" value="{$this->title->getPrefixedURL()}"
735 - <input type="radio" id="lqt_archive_filter_by_date_no" name="lqt_archive_filter_by_date" value="0" {$any_date_check}>
 734+ <input type="radio" id="lqt_archive_filter_by_date_no"
 735+ name="lqt_archive_filter_by_date" value="0" {$any_date_check}>
736736 <label for="lqt_archive_filter_by_date_no">Any date</label> <br>
737 - <input type="radio" id="lqt_archive_filter_by_date_yes" name="lqt_archive_filter_by_date" value="1" {$these_dates_check}>
 737+ <input type="radio" id="lqt_archive_filter_by_date_yes"
 738+ name="lqt_archive_filter_by_date" value="1" {$these_dates_check}>
738739 <label for="lqt_archive_filter_by_date_yes">Only these dates:</label> <br>
739740
740741 <label for="lqt_archive_start">Start</label>
Index: branches/liquidthreads/extensions/LqtModel.php
@@ -337,9 +337,8 @@
338338 function extendQuery( $original, $newname, $where, $options = array() ) {
339339 if (!array_key_exists($original,$this->queries)) return;
340340 $q = $this->queries[$original];
341 - $q[0] += $where;
342 - $q[1] += $options;
343 - $this->queries[$newname] = $q;
 341+ $this->queries[$newname] = array( array_merge($q[0], $where),
 342+ array_merge($q[1], $options) );
344343 }
345344
346345 function deleteQuery( $name ) {

Status & tagging log