diff options
Diffstat (limited to 'phpBB/phpbb')
| -rw-r--r-- | phpBB/phpbb/install/module/requirements/task/check_server_environment.php | 19 | 
1 files changed, 19 insertions, 0 deletions
| diff --git a/phpBB/phpbb/install/module/requirements/task/check_server_environment.php b/phpBB/phpbb/install/module/requirements/task/check_server_environment.php index 62485a2097..29f9777747 100644 --- a/phpBB/phpbb/install/module/requirements/task/check_server_environment.php +++ b/phpBB/phpbb/install/module/requirements/task/check_server_environment.php @@ -71,6 +71,9 @@ class check_server_environment extends \phpbb\install\task_base  		// Check for JSON support  		$this->check_json(); +		// XML extension support check +		$this->check_xml(); +  		// Check for dbms support  		$this->check_available_dbms(); @@ -155,6 +158,22 @@ class check_server_environment extends \phpbb\install\task_base  	}  	/** +	 * Checks whether or not the XML PHP extension is available (Required by the text formatter) +	 */ +	protected function check_xml() +	{ +		if (class_exists('DOMDocument')) +		{ +			$this->set_test_passed(true); +			return; +		} + +		$this->response_helper->add_error_message('PHP_XML_SUPPORT', 'PHP_XML_SUPPORT_EXPLAIN'); + +		$this->set_test_passed(false); +	} + +	/**  	 * Check if any supported DBMS is available  	 */  	protected function check_available_dbms() | 
