r88593 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r88592‎ | r88593 | r88594 >
Date:18:14, 22 May 2011
Author:ialex
Status:deferred
Tags:
Comment:
Call wfDoUpdates() instead of messing with $mediaWiki, much much easier.
I know this is in a comment, but now it won't appear anymore in my grepping.
Modified paths:
  • /trunk/extensions/MetavidWiki/includes/MV_MetavidInterface/MV_Overlay.php (modified) (history)

Diff [purge]

Index: trunk/extensions/MetavidWiki/includes/MV_MetavidInterface/MV_Overlay.php
@@ -886,8 +886,7 @@
887887 //clear cache for title:
888888 //$nt->invalidateCache();
889889 //Article::onArticleEdit($nt);
890 - global $wgDeferredUpdateList, $mediaWiki;
891 - $mediaWiki->doUpdates( $wgDeferredUpdateList );
 890+ wfDoUpdates( 'commit' );
892891 //try again:
893892 $newTitle = Title::newFromText($nt->getText(), MV_NS_MVD);
894893 $na = new Article($newTitle);

Status & tagging log