https://www.mediawiki.org/wiki/Special:Code/MediaWiki/113948

Revision: 113948
Author:   reedy
Date:     2012-03-15 20:09:36 +0000 (Thu, 15 Mar 2012)
Log Message:
-----------
Not sure why we're doing a LIKE query against what are going to be exact 
template names.

Re-running this way gives sensible amounts of results - 21 on enwiki, just over 
6000 on itwiki, not seemingly iterating over more pages than the wiki has..

Then running RefreshLinks::fixLinksFromArticle( '1234' ) clears it off the list

Modified Paths:
--------------
    trunk/extensions/WikimediaMaintenance/cleanupBug31576.php

Modified: trunk/extensions/WikimediaMaintenance/cleanupBug31576.php
===================================================================
--- trunk/extensions/WikimediaMaintenance/cleanupBug31576.php   2012-03-15 
19:59:12 UTC (rev 113947)
+++ trunk/extensions/WikimediaMaintenance/cleanupBug31576.php   2012-03-15 
20:09:36 UTC (rev 113948)
@@ -34,7 +34,7 @@
                        $res = $dbr->select( 'templatelinks', array( 
'tl_title', 'tl_from' ),
                                array(
                                        'tl_namespace' => NS_TEMPLATE,
-                                       'tl_title ' . $dbr->buildLike( 
$synonym, $dbr->anyString() )
+                                       'tl_title' => $synonym
                                ), __METHOD__,
                                array( 'ORDER BY' => array( 'tl_title', 
'tl_from' ), 'LIMIT' => $this->batchsize )
                        );


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to