r92241 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r92240‎ | r92241 | r92242 >
Date:14:22, 15 July 2011
Author:btongminh
Status:ok
Tags:
Comment:
Fix bug 28600 by doing INSERT IGNORE, just like LinksUpdate does.
Modified paths:
  • /trunk/extensions/GlobalUsage/GlobalUsage_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/GlobalUsage/GlobalUsage_body.php
@@ -33,7 +33,7 @@
3434 'gil_to' => $name
3535 );
3636 }
37 - $this->db->insert( 'globalimagelinks', $insert, __METHOD__ );
 37+ $this->db->insert( 'globalimagelinks', $insert, __METHOD__, array( 'IGNORE' ) );
3838 }
3939 /**
4040 * Get all global images from a certain page

Status & tagging log