http://www.mediawiki.org/wiki/Special:Code/MediaWiki/70059

Revision: 70059
Author:   demon
Date:     2010-07-28 00:03:52 +0000 (Wed, 28 Jul 2010)

Log Message:
-----------
Revert r70058 per comment

Modified Paths:
--------------
    trunk/extensions/FlaggedRevs/FlaggedRevs.class.php

Modified: trunk/extensions/FlaggedRevs/FlaggedRevs.class.php
===================================================================
--- trunk/extensions/FlaggedRevs/FlaggedRevs.class.php  2010-07-27 23:05:17 UTC 
(rev 70058)
+++ trunk/extensions/FlaggedRevs/FlaggedRevs.class.php  2010-07-28 00:03:52 UTC 
(rev 70059)
@@ -531,16 +531,10 @@
                                }
                        }
                }
-               # Parse the new body, wikitext -> html. Maybe use parser cache
-               $options = self::makeParserOptions();
-               $parserOut = null;
-               if( $title->getLatestRevID() == $id ) {
-                       $parserOut = ParserCache::singleton()->get( new 
Article( $title, 0 ), $options );
-               }
-               if( !$parserOut ) {
-                       $parserOut = $wgParser->parse( $text, $title, $options, 
true, true, $id );
-               }
-
+               # Parse the new body, wikitext -> html
+               $options = self::makeParserOptions(); // default options
+               $parserOut = $wgParser->parse( $text, $title, $options, true, 
true, $id );
+               # Stable parse done!
                if ( $resetManager ) {
                        $incManager->clear(); // reset the FRInclusionManager 
as needed
                }



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

Reply via email to