Permalink
Browse files

Merge pull request #28 from hdrlab/patch-1

A fix so that non-indexed pages remain non-indexed
  • Loading branch information...
2 parents 3785409 + 620e09b commit 6cc800a0db427f3837772b75c9eed269eb993f90 @wilr committed Dec 19, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 code/GoogleSitemapDecorator.php
@@ -89,7 +89,7 @@ public function getPriority() {
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 @@ public function getChangeFrequency() {
return $freq;
}
-}
+}

0 comments on commit 6cc800a

Please sign in to comment.