diff --git a/setup/modelfactory.class.inc.php b/setup/modelfactory.class.inc.php index 4164bb468..6d6d1277d 100644 --- a/setup/modelfactory.class.inc.php +++ b/setup/modelfactory.class.inc.php @@ -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