diff options
author | Lukas Reschke <lukas@owncloud.com> | 2014-11-28 15:40:11 +0100 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2014-11-28 15:43:08 +0100 |
commit | 85b7ee349b92fb201abb9e69505caabe6285688f (patch) | |
tree | 6162079f9e24fb0089459c5674ce6973971e151d | |
parent | 9b414d81d867df1ce56ec2c8b4c5211ae625c12e (diff) | |
download | nextcloud-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.php | 7 |
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')), |