From ed2985285134ecf5c23d6b15f2220a5d4795b470 Mon Sep 17 00:00:00 2001 From: Andrew Nicols Date: Sat, 3 Dec 2022 11:47:53 +0800 Subject: [PATCH] MDL-76556 tool_log: Set the store property correctly --- admin/tool/log/classes/helper/store.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/tool/log/classes/helper/store.php b/admin/tool/log/classes/helper/store.php index f3bf4bb0c9b..ea506ca2aef 100644 --- a/admin/tool/log/classes/helper/store.php +++ b/admin/tool/log/classes/helper/store.php @@ -57,7 +57,7 @@ trait store { throw new \coding_exception("Store $called doesn't define classes in correct namespaces."); } $this->component = $parts[0]; - $this->store = str_replace('logstore_', '', $this->store); + $this->store = str_replace('logstore_', '', $this->component); } /**