From 8589682b7ec2b4ae9159be6b302599313e0d8cdf Mon Sep 17 00:00:00 2001 From: Saophalkun Ponlu Date: Sun, 19 Jul 2009 21:24:45 +0000 Subject: [PATCH] BUGFIX: BlogTree always got LandingPageFreshness value from its parent --- code/BlogTree.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/code/BlogTree.php b/code/BlogTree.php index 27cb6eb..96d1d62 100644 --- a/code/BlogTree.php +++ b/code/BlogTree.php @@ -69,10 +69,9 @@ class BlogTree extends Page { public function getLandingPageFreshness() { $freshness = $this->getField('LandingPageFreshness'); // If we want to inherit freshness, try that first - if ($freshness = "INHERIT" && $this->getParent()) $freshness = $this->getParent()->LandingPageFreshness; + if ($freshness == "INHERIT" && $this->getParent()) $freshness = $this->getParent()->LandingPageFreshness; // If we don't have a parent, or the inherited result was still inherit, use default - if ($freshness = "INHERIT") $freshness = ''; - + if ($freshness == "INHERIT") $freshness = ''; return $freshness; }