r53705 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r53704‎ | r53705 | r53706 >
Date:01:37, 24 July 2009
Author:alexsh
Status:reverted (Comments)
Tags:
Comment:
fix namespaces target
Modified paths:
  • /trunk/phase3/includes/api/ApiQueryBrokenRedirects.php (modified) (history)
  • /trunk/phase3/includes/api/ApiQueryDoubleRedirects.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/api/ApiQueryDoubleRedirects.php
@@ -96,16 +96,16 @@
9797 }
9898 if (is_null($resultPageSet)) {
9999 $title = Title :: makeTitle($row->page_namespace, $row->title);
100 - $titleB = Title :: makeTitle($row->page_namespace, $row->tb);
101 - $titleC = Title :: makeTitle($row->page_namespace, $row->tc);
 100+ $titleB = Title :: makeTitle($row->page_nsb, $row->tb);
 101+ $titleC = Title :: makeTitle($row->page_nsc, $row->tc);
102102 $vals = array(
103103 'pageid' => $row->pageid,
104104 'ns' => intval($row->namespace),
105105 'title' => $title->getPrefixedText(),
106 - 'idb' => intval($row->idb),
 106+ 'idb' => $row->idb,
107107 'nsb' => intval($row->nsb),
108108 'tb' => $titleB->getPrefixedText(),
109 - 'idc' => intval($row->idc),
 109+ 'idc' => $row->idc,
110110 'nsc' => intval($row->nsc),
111111 'tc' => $titleC->getPrefixedText(),
112112 );
Index: trunk/phase3/includes/api/ApiQueryBrokenRedirects.php
@@ -88,7 +88,7 @@
8989 }
9090 if (is_null($resultPageSet)) {
9191 $title = Title :: makeTitle($row->page_namespace, $row->title);
92 - $rdtitle = Title :: makeTitle($row->page_namespace, $row->rd_title);
 92+ $rdtitle = Title :: makeTitle($row->rd_namespace, $row->rd_title);
9393 $vals = array(
9494 'pageid' => intval($row->pageid),
9595 'ns' => intval($row->namespace),

Follow-up revisions

RevisionCommit summaryAuthorDate
r54265Revert r53678, r53704, r53705, r53773, r53930, r54199, r54201: Addition of Ap...btongminh11:06, 3 August 2009

Comments

#Comment by Bryan (talk | contribs)   11:07, 3 August 2009

Reverted in r54265.

Status & tagging log