Permalink
Browse files

BUGFIX: Ensure tabset exists. (#5212)

  • Loading branch information...
lingo committed Mar 18, 2010
1 parent cd18e1c commit ce5b9e85be8f902f71005a104a31623169faa51e
Showing with 3 additions and 0 deletions.
  1. +3 −0 code/GoogleAnalytics.php
View
@@ -36,6 +36,9 @@ static function getIndexStatus() {
* Modifies the main cms for all pages to include a description of their status in search engines
*/
public function updateCMSFields($fields) {
if (!$fields->fieldByName('Root.Reports')) {
$fields->addFieldToTab("Root",new TabSet('Reports'));
}
$fields->addFieldToTab("Root.Reports.Index",new LiteralField("IndexStatus",self::getIndexStatus()));
return $fields;

0 comments on commit ce5b9e8

Please sign in to comment.