MDL-46269 tool_httpsreplace: Combine CLI scripts

This commit is contained in:
John Okely
2017-09-22 10:40:01 +08:00
committed by Marina Glancy
parent 55b1d231ed
commit 16d5ec55c9
3 changed files with 47 additions and 68 deletions
@@ -67,7 +67,7 @@ class url_finder {
private function domain_swap($table, $column, $domain) {
global $DB;
$renames = (array)json_decode(get_config('tool_httpsreplace', 'renames'));
$renames = json_decode(get_config('tool_httpsreplace', 'renames'), true);
$search = "http://$domain";
$replace = "https://$domain";