BUG 5873: no fix required, but was improved

This commit is contained in:
Erik Amaru Ortiz
2011-01-14 14:44:23 +00:00
parent a5931e259e
commit d4701cc34e

View File

@@ -38,8 +38,13 @@ if( $access != 1 ) {
$result = new stdClass();
try {
if(!is_writable(PATH_XMLFORM))
//if the xmlform path is writeable
if( ! is_writable(PATH_XMLFORM) )
throw new Exception(G::LoadTranslation('IMPORT_LANGUAGE_ERR_NO_WRITABLE'));
//if all xml files within the xmlform directory are writeable
if( ! G::is_rwritable(PATH_XMLFORM) )
throw new Exception(G::LoadTranslation('IMPORT_LANGUAGE_ERR_NO_WRITABLE2'));
$sMaxExecutionTime = ini_get('max_execution_time');
ini_set('max_execution_time', '0');