From 85b7ee349b92fb201abb9e69505caabe6285688f Mon Sep 17 00:00:00 2001 From: Lukas Reschke Date: Fri, 28 Nov 2014 15:40:11 +0100 Subject: [PATCH] Check for XMLWriter class Backport of https://github.com/owncloud/core/pull/12321 --- lib/private/util.php | 7 +++++++ 1 file changed, 7 insertions(+) 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')), -- 2.39.5