Fixed incorrect detection of PHP's DOM module (bug 13770)

This commit is contained in:
Tim Starling 2008-08-11 17:24:35 +00:00
parent 10018a88ef
commit e4ecf89421
2 changed files with 2 additions and 1 deletions

View 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 ===

View 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';