Unverified Commit 4f6ce059 authored by hswong3i's avatar hswong3i Committed by Dave Reid
Browse files

Issue #3001071 by hswong3i: Fixed PHP Notice: Undefined variable: file in...

Issue #3001071 by hswong3i: Fixed PHP Notice: Undefined variable: file in Drupal\xmlsitemap\XmlSitemapWriter->endDocument().
parent 8dc1d3be
......@@ -275,8 +275,8 @@ class XmlSitemapWriter extends \XMLWriter {
// @codingStandardsIgnoreStart
if (xmlsitemap_var('gz')) {
$file_gz = $file . '.gz';
file_put_contents($file_gz, gzencode(file_get_contents($file), 9));
$file_gz = $this->uri . '.gz';
file_put_contents($file_gz, gzencode(file_get_contents($this->uri), 9));
}
// @codingStandardsIgnoreEnd
......
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