Index: trunk/extensions/LocalisationUpdate/LocalisationUpdate.class.php |
— | — | @@ -32,7 +32,7 @@ |
33 | 33 | |
34 | 34 | // MW 1.16+ |
35 | 35 | public static function onRecache( $lc, $langcode, &$cache ) { |
36 | | - $dbr = wfGetDB ( DB_SLAVE ); |
| 36 | + $dbr = wfGetDB ( DB_MASTER ); |
37 | 37 | |
38 | 38 | // Get the messages from the database |
39 | 39 | $res = $dbr->select( self::table( 'localisation' ), |
— | — | @@ -568,7 +568,7 @@ |
569 | 569 | } |
570 | 570 | |
571 | 571 | function getTimestamp() { |
572 | | - $dbr = wfGetDB( DB_SLAVE ); |
| 572 | + $dbr = wfGetDB( DB_MASTER ); |
573 | 573 | return $dbr->selectField( |
574 | 574 | LocalisationUpdate::table( 'localisation_file_hash' ), |
575 | 575 | 'MAX(lfh_timestamp)', |