From 0371048932b2a7248014814acc7663ddd6b69c00 Mon Sep 17 00:00:00 2001 From: Guy Sartorelli Date: Thu, 17 Oct 2024 16:53:28 +1300 Subject: [PATCH] ENH Update code to reflect changes to silverstripe/admin --- code/Controller/AssetAdmin.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/Controller/AssetAdmin.php b/code/Controller/AssetAdmin.php index 3e92dc32b..acc461ca5 100644 --- a/code/Controller/AssetAdmin.php +++ b/code/Controller/AssetAdmin.php @@ -824,10 +824,10 @@ public function providePermissions() { return array( "CMS_ACCESS_AssetAdmin" => array( - 'name' => _t('SilverStripe\\CMS\\Controllers\\CMSMain.ACCESS', "Access to '{title}' section", array( + 'name' => _t(LeftAndMain::class . '.ACCESS', "Access to '{title}' section", array( 'title' => static::menu_title() )), - 'category' => _t('SilverStripe\\Security\\Permission.CMS_ACCESS_CATEGORY', 'CMS Access') + 'category' => _t(LeftAndMain::class . '.CMS_ACCESS_CATEGORY', 'CMS Access') ) ); }