mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Fix title being included in $MetaTags when it shouldn't be
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@39877 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
037d77beca
commit
9bedeed772
@ -365,7 +365,7 @@ class SiteTree extends DataObject {
|
||||
*/
|
||||
public function MetaTags($includeTitle = true) {
|
||||
$tags = "";
|
||||
if($includeTitle == true || $includeTitle == 'true') {
|
||||
if($includeTitle === true || $includeTitle == 'true') {
|
||||
$tags .= "<title>" . Convert::raw2xml($this->MetaTitle ? $this->MetaTitle : $this->Title) . "</title>\n";
|
||||
}
|
||||
$tags .= "<meta name=\"generator\" http-equiv=\"generator\" content=\"SilverStripe 2.0 - http://www.silverstripe.com\" />\n";
|
||||
|
Loading…
Reference in New Issue
Block a user