Commit 7c15c7dc authored by Dave Reid's avatar Dave Reid

Issue #2220707 by coredumperror, devkinetic, s-robertson | danmurf: Removed...

Issue #2220707 by coredumperror, devkinetic, s-robertson | danmurf: Removed filesize() check on generated file that causes unnecessary exception since the file might not actually be written to yet.
parent 527e93e7
......@@ -152,10 +152,6 @@ class XMLSitemapWriter extends XMLWriter {
// file_put_contents($file_gz, gzencode(file_get_contents($file), 9));
//}
if (!filesize($this->uri)) {
throw new XMLSitemapGenerationException(t('Generated @file resulted in an empty file.', array('@file' => $this->uri)));
}
return $return;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment