Skip to content

Commit

Permalink
fix blocks tab not showing in some cases. Fixes #98
Browse files Browse the repository at this point in the history
  • Loading branch information
sheadawson committed Jun 21, 2016
1 parent 567f573 commit 623a947
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/extensions/BlocksSiteTreeExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public function updateCMSFields(FieldList $fields)
$areas = $this->blockManager->getAreasForPageType($this->owner->ClassName);

if ($areas && count($areas)) {
$fields->addFieldToTab('Root', new Tab('Blocks', _t('Block.PLURALNAME')));
$fields->addFieldToTab('Root', new Tab('Blocks', _t('Block.PLURALNAME', 'Blocks')));
if (BlockManager::config()->get('block_area_preview')) {
$fields->addFieldToTab('Root.Blocks',
LiteralField::create('PreviewLink', $this->areasPreviewButton()));
Expand Down

0 comments on commit 623a947

Please sign in to comment.