r22934 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r22933‎ | r22934 | r22935 >
Date:19:59, 12 June 2007
Author:rainman
Status:old
Tags:
Comment:
Fix bad query, forgot to add part of the where clause...
Modified paths:
  • /trunk/extensions/OAI/OAIRepo_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/OAI/OAIRepo_body.php
@@ -665,8 +665,9 @@
666666 rp.page_title AS page_title
667667 FROM $updates AS u, $page AS p, $redirect AS r, $page AS rp
668668 WHERE u.up_page=p.page_id AND p.page_namespace=r.rd_namespace
669 - AND p.page_title=r.rd_title AND r.rd_from=rp.page_id";
670 -
 669+ AND p.page_title=r.rd_title AND r.rd_from=rp.page_id
 670+ $pages_where";
 671+
671672 return $this->_db->resultObject( $this->_db->query( $sql ) );
672673 }
673674

Status & tagging log