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));
|
return max(0.1, 1.0 - ($numParents / 10));
|
||||||
}
|
}
|
||||||
elseif ($this->owner->getField('Priority') == -1) {
|
elseif ($this->owner->getField('Priority') == -1) {
|
||||||
return 0;
|
return -1;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$priority = abs($this->owner->getField('Priority'));
|
$priority = abs($this->owner->getField('Priority'));
|
||||||
|
@ -140,4 +140,4 @@ class GoogleSitemapSiteTreeDecorator extends DataExtension {
|
||||||
|
|
||||||
return $freq;
|
return $freq;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue