Skip to content

Commit

Permalink
Fix no index message always shown
Browse files Browse the repository at this point in the history
  • Loading branch information
sanderha authored Jun 29, 2018
1 parent 9619b09 commit 0522e26
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/NoIndexExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ public function MetaTags(&$tags)

public function updateCMSFields($fields)
{
if (Director::isLive()) {
return;
}
$fields->addFieldToTab('Root.Main', LiteralField::create(
'NoIndexWarningHeader',
'<div class="alert alert-warning">' . _t(
Expand Down

0 comments on commit 0522e26

Please sign in to comment.