From 5308e76142e91ac3119060cb9538307d4b095702 Mon Sep 17 00:00:00 2001 From: Andrew O'Neil Date: Wed, 1 Aug 2007 21:41:09 +0000 Subject: [PATCH] Check for string 'true' as well as boolean in MetaTags git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@39532 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- core/model/SiteTree.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/model/SiteTree.php b/core/model/SiteTree.php index f9448a5ed..428596183 100644 --- a/core/model/SiteTree.php +++ b/core/model/SiteTree.php @@ -362,12 +362,12 @@ class SiteTree extends DataObject { /** * Return the title, description and keywords metatags. - * @param boolean $includeTitle Show default -tag, set to false for custom templating + * @param boolean|string $includeTitle Show default <title>-tag, set to false for custom templating * @return string The XHTML metatags */ public function MetaTags($includeTitle = true) { $tags = ""; - if($includeTitle == true) { + if($includeTitle == true || $includeTitle == 'true') { $tags .= "<title>" . Convert::raw2xml($this->MetaTitle ? $this->MetaTitle : $this->Title) . "\n"; } $tags .= "\n";