On second thoughts, don't increment the parser cache serial; it *will* cause a load...
authorRob Church <robchurch@users.mediawiki.org>
Mon, 25 Jun 2007 16:00:46 +0000 (16:00 +0000)
committerRob Church <robchurch@users.mediawiki.org>
Mon, 25 Jun 2007 16:00:46 +0000 (16:00 +0000)
includes/OutputPage.php
includes/Parser.php

index ed5674f..cbc8e45 100644 (file)
@@ -387,8 +387,10 @@ class OutputPage {
                $this->mTemplateIds += (array)$parserOutput->mTemplateIds;
                
                # Display title
-               if( ( $dt = $parserOutput->getDisplayTitle() ) !== false )
-                       $this->setPageTitle( $dt );
+               if( is_callable( array( $parserOutput, 'getDisplayTitle' ) ) ) {
+                       if( ( $dt = $parserOutput->getDisplayTitle() ) !== false )
+                               $this->setPageTitle( $dt );
+               }
                
                wfRunHooks( 'OutputPageParserOutput', array( &$this, $parserOutput ) );
        }
index e4418cd..50f9ac1 100644 (file)
@@ -12,7 +12,7 @@
  * changes in an incompatible way, so the parser cache
  * can automatically discard old data.
  */
-define( 'MW_PARSER_VERSION', '1.6.2' );
+define( 'MW_PARSER_VERSION', '1.6.1' );
 
 define( 'RLH_FOR_UPDATE', 1 );