mirror of
https://github.com/wilr/silverstripe-googlesitemaps.git
synced 2024-10-22 11:05:48 +02:00
Merge pull request #28 from hdrlab/patch-1
A fix so that non-indexed pages remain non-indexed
This commit is contained in:
commit
6cc800a0db
@ -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'));
|
||||
|
Loading…
Reference in New Issue
Block a user