From 42de5d13d5e5214ed09a1ec80ca1fbbf8ff7f4f8 Mon Sep 17 00:00:00 2001 From: Brendan Heywood Date: Thu, 2 Jan 2025 13:21:55 +1100 Subject: [PATCH 1/2] Fix ci badge --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index cf12f8e..89231ec 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,8 @@ # A Moodle A/B testing admin tool -![GitHub Workflow Status (branch)](https://img.shields.io/github/workflow/status/catalyst/moodle-tool_abconfig/ci/MOODLE_38_STABLE) + + + A way to A/B test config, or slowly turn on config for certain audiences or % of traffic From 27764136b631e6eaca59bf0ce34cd6dd1ca94175 Mon Sep 17 00:00:00 2001 From: Brendan Heywood Date: Thu, 2 Jan 2025 13:28:51 +1100 Subject: [PATCH 2/2] Used debugging instead of error_log --- lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib.php b/lib.php index a8f74af..668e302 100644 --- a/lib.php +++ b/lib.php @@ -291,7 +291,7 @@ function tool_abconfig_execute_command_array($commandsencoded, $shortname, $js = $CFG->{$commandarray[1]} = $commandarray[2]; $CFG->config_php_settings[$commandarray[1]] = $commandarray[2]; } else { - error_log("abconfig: Can't override \$CFG->{$commandarray[1]} because already set in config.php!"); + debugging("abconfig: Can't override \$CFG->{$commandarray[1]} because already set in config.php!"); } } if ($command == 'forced_plugin_setting') {