From fcd4e076c2a39cec4282d637342297d14630093e Mon Sep 17 00:00:00 2001 From: Rob Church Date: Mon, 25 Jun 2007 16:00:46 +0000 Subject: [PATCH] On second thoughts, don't increment the parser cache serial; it *will* cause a load spike. Added some backwards-compatible checking which should incur no overhead. \o/ --- includes/OutputPage.php | 6 ++++-- includes/Parser.php | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/includes/OutputPage.php b/includes/OutputPage.php index ed5674f788..cbc8e45cd4 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -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 ) ); } diff --git a/includes/Parser.php b/includes/Parser.php index e4418cd51c..50f9ac1e70 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -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 ); -- 2.20.1