mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-18 16:18:47 +02:00
#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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user