r80442 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r80441‎ | r80442 | r80443 >
Date:13:35, 17 January 2011
Author:tstarling
Status:ok
Tags:
Comment:
Fix broken query in File::getLinksTo()
Modified paths:
  • /trunk/phase3/includes/filerepo/File.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/filerepo/File.php
@@ -901,7 +901,7 @@
902902 $encName = $db->addQuotes( $this->getName() );
903903 $res = $db->select( array( 'page', 'imagelinks'),
904904 array( 'page_namespace', 'page_title', 'page_id', 'page_len', 'page_is_redirect', 'page_latest' ),
905 - array( 'page_id' => 'il_from', 'il_to' => $encName ),
 905+ array( 'page_id=il_from', 'il_to' => $encName ),
906906 __METHOD__,
907907 $options );
908908

Follow-up revisions

RevisionCommit summaryAuthorDate
r807221.17: MFT r80324, r80326, r80328, r80339, r80350, r80351, r80355, r80358, r80...catrope23:00, 21 January 2011

Status & tagging log