MDL-76556 tool_log: Set the store property correctly

This commit is contained in:
Andrew Nicols 2022-12-03 11:47:53 +08:00
parent 1d863c338a
commit a8f63b26be

View File

@ -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);
}
/**