From 7c13bac0a09a72cd87c6614084f36457b6f1dbad Mon Sep 17 00:00:00 2001 From: Guy Sartorelli <36352093+GuySartorelli@users.noreply.github.com> Date: Thu, 12 Dec 2024 17:29:04 +1300 Subject: [PATCH] ENH Update code to reflect changes to silverstripe/admin (#205) --- code/ReportAdmin.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/ReportAdmin.php b/code/ReportAdmin.php index 7f710cd9..80a2f458 100644 --- a/code/ReportAdmin.php +++ b/code/ReportAdmin.php @@ -222,10 +222,10 @@ public function providePermissions() { return array( "CMS_ACCESS_ReportAdmin" => 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') ) ); }