From: Tim Starling Date: Mon, 17 Jan 2011 13:35:16 +0000 (+0000) Subject: Fix broken query in File::getLinksTo() X-Git-Tag: 1.31.0-rc.0~32500 X-Git-Url: http://git.cyclocoop.org/data/%24oldEdit?a=commitdiff_plain;h=14d576cd8694bad17f0b6f7a002b008f426903fc;p=lhc%2Fweb%2Fwiklou.git Fix broken query in File::getLinksTo() --- diff --git a/includes/filerepo/File.php b/includes/filerepo/File.php index 65d7e79a0a..bbcb4f97e3 100644 --- a/includes/filerepo/File.php +++ b/includes/filerepo/File.php @@ -901,7 +901,7 @@ abstract class File { $encName = $db->addQuotes( $this->getName() ); $res = $db->select( array( 'page', 'imagelinks'), array( 'page_namespace', 'page_title', 'page_id', 'page_len', 'page_is_redirect', 'page_latest' ), - array( 'page_id' => 'il_from', 'il_to' => $encName ), + array( 'page_id=il_from', 'il_to' => $encName ), __METHOD__, $options );