aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/install
diff options
context:
space:
mode:
authorOliver Schramm <oliver.schramm97@gmail.com>2016-07-30 23:04:44 +0200
committerOliver Schramm <oliver.schramm97@gmail.com>2016-07-30 23:04:44 +0200
commit69d2bad929f8a8d0d92bf9fcc1cb1edeccf88c51 (patch)
tree4184db0ae866aa67c8c1d429772fd35cfd11b4e9 /phpBB/phpbb/install
parented2c8b5bf77a46852d9b0f989df42a5997fa8562 (diff)
parent61a147546def2aaee24e723d5a78cb7afbc31331 (diff)
downloadforums-69d2bad929f8a8d0d92bf9fcc1cb1edeccf88c51.tar
forums-69d2bad929f8a8d0d92bf9fcc1cb1edeccf88c51.tar.gz
forums-69d2bad929f8a8d0d92bf9fcc1cb1edeccf88c51.tar.bz2
forums-69d2bad929f8a8d0d92bf9fcc1cb1edeccf88c51.tar.xz
forums-69d2bad929f8a8d0d92bf9fcc1cb1edeccf88c51.zip
Merge pull request #4395 from CHItA/ticket/14633
[ticket/14633] Check for XML extension support on install
Diffstat (limited to 'phpBB/phpbb/install')
-rw-r--r--phpBB/phpbb/install/module/requirements/task/check_server_environment.php19
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()