From e89f63148cd2d74aa5e3c563d6767f377a19e695 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 18 Jul 2012 17:39:42 +0000 Subject: [PATCH] if dir is not writable, download xet file --- etemplate/inc/class.editor.inc.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/etemplate/inc/class.editor.inc.php b/etemplate/inc/class.editor.inc.php index cf9d38d0a9..a594b13dd3 100644 --- a/etemplate/inc/class.editor.inc.php +++ b/etemplate/inc/class.editor.inc.php @@ -131,7 +131,11 @@ class editor } if (!is_writeable($dir)) { - return lang("Error: webserver is not allowed to write into '%1' !!!",$dir); + // if dir is not writable, download file + html::content_header($name.'.xet','application/xml',bytes($xml)); + echo $xml; + common::egw_exit(); + //return lang("Error: webserver is not allowed to write into '%1' !!!",$dir); } if ($create_it) {