From 1c2b18a4395dcb8e3516ed0819d95e6b272201cb Mon Sep 17 00:00:00 2001 From: rWatcher Date: Sun, 2 Aug 2009 14:25:12 -0400 Subject: [PATCH] Use the item's title for the KEYWORDS tag if the item does not have any tags. --- modules/metadescription/views/metadescription_block.html.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/metadescription/views/metadescription_block.html.php b/modules/metadescription/views/metadescription_block.html.php index c4a5cb87..b24bbf0f 100644 --- a/modules/metadescription/views/metadescription_block.html.php +++ b/modules/metadescription/views/metadescription_block.html.php @@ -11,6 +11,11 @@ } } } + + // If $metaTags is empty, use the item's title instead. + if ($metaTags == "") { + $metaTags = p::clean($item->title); + } $metaDescription = ""; $metaDescription = trim(nl2br(p::purify($item->description)));