diff --git a/code/GoogleSitemapDecorator.php b/code/GoogleSitemapDecorator.php index 34de0f4..42527e4 100644 --- a/code/GoogleSitemapDecorator.php +++ b/code/GoogleSitemapDecorator.php @@ -89,7 +89,7 @@ class GoogleSitemapSiteTreeDecorator extends DataExtension { return max(0.1, 1.0 - ($numParents / 10)); } elseif ($this->owner->getField('Priority') == -1) { - return 0; + return -1; } else { $priority = abs($this->owner->getField('Priority')); @@ -140,4 +140,4 @@ class GoogleSitemapSiteTreeDecorator extends DataExtension { return $freq; } -} \ No newline at end of file +}