MDL-46269 tool_httpsreplace: Add more info and warnings about the tool

This commit is contained in:
John Okely
2017-08-31 16:41:33 +08:00
committed by Marina Glancy
parent f7e6fb04db
commit c74748c6bd
4 changed files with 20 additions and 9 deletions
@@ -41,6 +41,10 @@ Example:
exit(0);
}
if (!is_https()) {
echo $OUTPUT->notification(get_string('httpwarning', 'tool_httpsreplace'), 'warning');
}
$urlfinder = new \tool_httpsreplace\url_finder();
$results = $urlfinder->http_link_stats();
$fp = fopen('php://stdout', 'w');
@@ -41,5 +41,9 @@ Example:
exit(0);
}
if (!is_https()) {
echo $OUTPUT->notification(get_string('httpwarning', 'tool_httpsreplace'), 'warning');
}
$urlfinder = new \tool_httpsreplace\url_finder();
$urlfinder->upgrade_http_links();