https://bugzilla.wikimedia.org/show_bug.cgi?id=28485

Reedy <s...@reedyboy.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Attachment #8390|0                           |1
        is obsolete|                            |

--- Comment #5 from Reedy <s...@reedyboy.net> 2011-04-11 00:30:00 UTC ---
Comment on attachment 8390
  --> https://bugzilla.wikimedia.org/attachment.cgi?id=8390
Patch...

>Index: Block.php
>===================================================================
>--- Block.php  (revision 85768)
>+++ Block.php  (working copy)
>@@ -889,7 +889,9 @@
>        * Purge expired blocks from the ipblocks table
>        */
>       public static function purgeExpired() {
>-              $dbw = wfGetDB( DB_MASTER );
>+              global $wgDbBname;
>+              $lb = wfGetLb( $wgDbBname );
>+              $dbw = $lb->getConnection( DB_MASTER, array(), $wgDbBname );
>               $dbw->delete( 'ipblocks', array( 'ipb_expiry < ' . 
> $dbw->addQuotes( $dbw->timestamp() ) ), __METHOD__ );
>       }
>

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to