Fixed incorrect detection of PHP's DOM module (bug 13770)
authorTim Starling <tstarling@users.mediawiki.org>
Mon, 11 Aug 2008 17:24:35 +0000 (17:24 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Mon, 11 Aug 2008 17:24:35 +0000 (17:24 +0000)
RELEASE-NOTES
includes/parser/Parser.php

index e6f94c0..e333766 100644 (file)
@@ -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 ===
 
index 75dc915..de0d743 100644 (file)
@@ -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';