From 623a947387b0e93f671d9813b360d27a3d442d42 Mon Sep 17 00:00:00 2001 From: Shea Date: Wed, 22 Jun 2016 11:18:24 +1200 Subject: [PATCH] fix blocks tab not showing in some cases. Fixes #98 --- code/extensions/BlocksSiteTreeExtension.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/extensions/BlocksSiteTreeExtension.php b/code/extensions/BlocksSiteTreeExtension.php index 86e4b47..9b79d26 100644 --- a/code/extensions/BlocksSiteTreeExtension.php +++ b/code/extensions/BlocksSiteTreeExtension.php @@ -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()));