#680 Setup failing to display the check report when DOM extension not enabled (php-xml not installed on redhat distributions)

SVN:trunk[2623]
This commit is contained in:
Romain Quetiez
2013-03-14 10:14:53 +00:00
parent 39b79e2a05
commit 0918c81d58

View File

@@ -1294,6 +1294,14 @@ EOF;
}
/**
* Allow the setup page to load and perform its checks (including the check about the required extensions)
*/
if (!class_exists('DOMElement'))
{
class DOMElement {function __construct(){throw new Exception('The dom extension is not enabled');}}
}
/**
* MFElement: helper to read/change the DOM
* @package ModelFactory
@@ -1779,6 +1787,14 @@ class MFElement extends DOMElement
}
}
/**
* Allow the setup page to load and perform its checks (including the check about the required extensions)
*/
if (!class_exists('DOMDocument'))
{
class DOMDocument {function __construct(){throw new Exception('The dom extension is not enabled');}}
}
/**
* MFDocument - formating rules for XML input/output
* @package ModelFactory