Index: trunk/extensions/FlaggedRevs/FlaggedRevs.class.php |
— | — | @@ -670,12 +670,14 @@ |
671 | 671 | */ |
672 | 672 | public static function updateSyncStatus( Article $article, $synced ) { |
673 | 673 | wfProfileIn( __METHOD__ ); |
674 | | - $dbw = wfGetDB( DB_MASTER ); |
675 | | - $dbw->update( 'flaggedpages', |
676 | | - array( 'fp_reviewed' => (int)$synced ), |
677 | | - array( 'fp_page_id' => $article->getID() ), |
678 | | - __METHOD__ |
679 | | - ); |
| 674 | + if ( !wfReadOnly() ) { |
| 675 | + $dbw = wfGetDB( DB_MASTER ); |
| 676 | + $dbw->update( 'flaggedpages', |
| 677 | + array( 'fp_reviewed' => (int)$synced ), |
| 678 | + array( 'fp_page_id' => $article->getID() ), |
| 679 | + __METHOD__ |
| 680 | + ); |
| 681 | + } |
680 | 682 | wfProfileOut( __METHOD__ ); |
681 | 683 | } |
682 | 684 | |
Index: trunk/extensions/FlaggedRevs/FlaggedRevs.hooks.php |
— | — | @@ -337,8 +337,7 @@ |
338 | 338 | if ( !( $parser instanceof Parser ) ) { |
339 | 339 | return true; // nothing to do |
340 | 340 | } |
341 | | - $incManager = FRInclusionManager::singleton(); |
342 | | - if ( !$incManager->parserOutputIsStabilized() ) { |
| 341 | + if ( !FRInclusionManager::singleton()->parserOutputIsStabilized() ) { |
343 | 342 | return true; // trigger for stable version parsing only |
344 | 343 | } |
345 | 344 | # Normalize NS_MEDIA to NS_FILE |
— | — | @@ -367,8 +366,7 @@ |
368 | 367 | if ( !( $parser instanceof Parser ) || $nt->getNamespace() != NS_FILE ) { |
369 | 368 | return true; // nothing to do |
370 | 369 | } |
371 | | - $incManager = FRInclusionManager::singleton(); |
372 | | - if ( !$incManager->parserOutputIsStabilized() ) { |
| 370 | + if ( !FRInclusionManager::singleton()->parserOutputIsStabilized() ) { |
373 | 371 | return true; // trigger for stable version parsing only |
374 | 372 | } |
375 | 373 | # Get version, update fr_fileSHA1Keys... |