if dir is not writable, download xet file

This commit is contained in:
Ralf Becker 2012-07-18 17:46:55 +00:00
parent 55c704a2b3
commit c93381b90a

View File

@ -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)
{