Skip to content
Snippets Groups Projects
Commit f2a83388 authored by Nadav Kavalerchik's avatar Nadav Kavalerchik Committed by GitHub
Browse files

Update store.php

parent 4a38b287
No related branches found
No related tags found
No related merge requests found
...@@ -66,12 +66,10 @@ class store extends php_obj implements log_writer { ...@@ -66,12 +66,10 @@ class store extends php_obj implements log_writer {
*/ */
public function __construct(log_manager $manager) { public function __construct(log_manager $manager) {
global $CFG; global $CFG;
$this->helper_setup($manager); $this->helper_setup($manager);
$this->logguests = $this->get_config('logguests', 1); $this->logguests = $this->get_config('logguests', 1);
$routes = $this->get_config('routes', ''); $routes = $this->get_config('routes', '');
$this->routes = $routes === '' ? [] : explode(',', $routes); $this->routes = $routes === '' ? [] : explode(',', $routes);
if (!empty($CFG->debug) and $CFG->debug >= DEBUG_DEVELOPER) { if (!empty($CFG->debug) and $CFG->debug >= DEBUG_DEVELOPER) {
$this->loggingenabled = true; $this->loggingenabled = true;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment