From 696d2cd09e583efe9404b8e4329178e8b1dde021 Mon Sep 17 00:00:00 2001 From: Grant McClure Date: Mon, 27 Jan 2025 18:29:06 -0800 Subject: [PATCH] Resolve Twig 3.15 deprecation issue #10 --- src/Glossary.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Glossary.php b/src/Glossary.php index a36286c..9b7fb44 100644 --- a/src/Glossary.php +++ b/src/Glossary.php @@ -101,7 +101,7 @@ public function init(): void // Register the plugin's template root Event::on( View::class, - View::EVENT_REGISTER_CP_TEMPLATE_ROOTS, + View::EVENT_REGISTER_TEMPLATE_ROOTS, function (RegisterTemplateRootsEvent $event) { $event->roots['glossary'] = $this->getBasePath() . '/templates'; }