From 98c6f4005ccfb3b91ede65b919300d36935cb61f Mon Sep 17 00:00:00 2001 From: carlgmathisen <> Date: Wed, 10 Dec 2008 11:34:24 +0000 Subject: removal of default generator meta tag --- framework/Web/UI/WebControls/THead.php | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'framework/Web/UI/WebControls') diff --git a/framework/Web/UI/WebControls/THead.php b/framework/Web/UI/WebControls/THead.php index 62ee46d3..36b81648 100644 --- a/framework/Web/UI/WebControls/THead.php +++ b/framework/Web/UI/WebControls/THead.php @@ -29,13 +29,6 @@ * * * - * - * A MetaTag for "generator" is added by default if you haven't specified your own generator meta tag. You can override - * the property by adding the following code to your template: - * - * - * - * * * Note, {@link TPage} has a property {@link TPage::getHead Head} that refers to * the THead control currently on the page. A page can have at most once THead @@ -162,24 +155,14 @@ class THead extends TControl if(($icon=$this->getShortcutIcon())!=='') $writer->write('\n"); - $generatorAdded = false; if(($metaTags=$this->getMetaTags())!==null) { foreach($metaTags as $metaTag) { - if(strtolower($metaTag->getName()) == 'generator') - $generatorAdded = true; $metaTag->render($writer); $writer->writeLine(); } } - if(!$generatorAdded) - { - $metaTag = new TMetaTag(); - $metaTag->setName('generator'); - $metaTag->setContent(Prado::metaGenerator()); - $metaTag->render($writer); - } $cs=$page->getClientScript(); $cs->renderStyleSheetFiles($writer); $cs->renderStyleSheets($writer); -- cgit v1.2.3