summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2014-11-28 15:40:11 +0100
committerLukas Reschke <lukas@owncloud.com>2014-11-28 15:43:08 +0100
commit85b7ee349b92fb201abb9e69505caabe6285688f (patch)
tree6162079f9e24fb0089459c5674ce6973971e151d
parent9b414d81d867df1ce56ec2c8b4c5211ae625c12e (diff)
downloadnextcloud-server-85b7ee349b92fb201abb9e69505caabe6285688f.tar.gz
nextcloud-server-85b7ee349b92fb201abb9e69505caabe6285688f.zip
Check for XMLWriter class
Backport of https://github.com/owncloud/core/pull/12321
-rw-r--r--lib/private/util.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/private/util.php b/lib/private/util.php
index 08de46bbfea..2642a71684f 100644
--- a/lib/private/util.php
+++ b/lib/private/util.php
@@ -497,6 +497,13 @@ class OC_Util {
);
$webServerRestart = true;
}
+ if(!class_exists('XMLWriter')) {
+ $errors[] = array(
+ 'error'=> $l->t('PHP module %s not installed.', array('XMLWriter')),
+ 'hint'=>$moduleHint
+ );
+ $webServerRestart = true;
+ }
if(!class_exists('DOMDocument')) {
$errors[] = array(
'error'=> $l->t('PHP module %s not installed.', array('dom')),