From e4ecf8942147da8f934ff7cefaec16319ae36c47 Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Mon, 11 Aug 2008 17:24:35 +0000 Subject: [PATCH] Fixed incorrect detection of PHP's DOM module (bug 13770) --- RELEASE-NOTES | 1 + includes/parser/Parser.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index e6f94c0d89..e33376622b 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -103,6 +103,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN WikimediaMessages. Patch for Czech by Danny B. * (bug 15101) Displaying only bots edits in Special:Recentchanges now works again +* (bug 13770) Fixed incorrect detection of PHP's DOM module === API changes in 1.14 === diff --git a/includes/parser/Parser.php b/includes/parser/Parser.php index 75dc915a79..de0d74369d 100644 --- a/includes/parser/Parser.php +++ b/includes/parser/Parser.php @@ -133,7 +133,7 @@ class Parser $this->mVarCache = array(); if ( isset( $conf['preprocessorClass'] ) ) { $this->mPreprocessorClass = $conf['preprocessorClass']; - } elseif ( class_exists( 'DOMDocument' ) ) { + } elseif ( extension_loaded( 'dom' ) ) { $this->mPreprocessorClass = 'Preprocessor_DOM'; } else { $this->mPreprocessorClass = 'Preprocessor_Hash'; -- 2.20.1