Merge pull request #28 from hdrlab/patch-1

A fix so that non-indexed pages remain non-indexed
This commit is contained in:
Will Rossiter 2012-12-18 23:26:06 -08:00
commit 6cc800a0db

View File

@ -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;
}
}
}