summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcarlgmathisen <>2008-12-10 11:34:24 +0000
committercarlgmathisen <>2008-12-10 11:34:24 +0000
commit98c6f4005ccfb3b91ede65b919300d36935cb61f (patch)
treebd89dd891625476c7f7b3c6a877cc3d88d0f1792
parent6f9ee03f2a58bd1c6c7afe738b553f1176464137 (diff)
removal of default generator meta tag
-rw-r--r--HISTORY1
-rw-r--r--framework/PradoBase.php5
-rw-r--r--framework/Web/UI/WebControls/THead.php17
3 files changed, 1 insertions, 22 deletions
diff --git a/HISTORY b/HISTORY
index 136366a7..261dbf7f 100644
--- a/HISTORY
+++ b/HISTORY
@@ -6,6 +6,7 @@ BUG: Issue#62 - Some mistyping: TJavascript or TJavaScript? (Carl)
BUG: Issue#79 - Missing new operator for Exception in TSqlMapObjectCollectionTree::onChildNodesVisited() (Christophe)
BUG: TActiveLinkButton and TActiveRadioButtonList crashes if it's the only active control imported. Added TActiveControlAdapter (Carl)
BUG: TUrlMapping encoded extra parameters twice (Michael)
+CHG: Removal of generator meta tag in THead
ENH: Issue#36 - Refactored TRatingList/TActiveRatingList, and added some docs (Bradley)
ENH: Issue#52 - Upgraded to TinyMCE 3.2.1
ENH: Issue#72 - Add wildcard support to TUrlMapping (friendly-urls) (Michael)
diff --git a/framework/PradoBase.php b/framework/PradoBase.php
index 4a64d6dd..5256b32e 100644
--- a/framework/PradoBase.php
+++ b/framework/PradoBase.php
@@ -115,11 +115,6 @@ class PradoBase
return '<a title="Powered by PRADO" href="http://www.pradosoft.com/" target="_blank"><img src="'.$url.'" style="border-width:0px;" alt="Powered by PRADO" /></a>';
}
- public static function metaGenerator()
- {
- return 'PRADO - http://www.pradosoft.com/';
- }
-
/**
* PHP error handler.
* This method should be registered as PHP error handler using
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 @@
* <com:TMetaTag Name="keywords" Content="Prado" />
* </com:THead>
* </code>
- *
- * 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:
- * <com:THead>
- * <com:TMetaTag Name="generator" Content="Custom name" />
- * </com:THead>
- * </code>
*
* 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('<link rel="shortcut icon" href="'.$icon."\" />\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);