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
+4 -3
View File
@@ -50,9 +50,9 @@ if (!$DB->replace_all_text_supported()) {
die;
}
echo $OUTPUT->box_start();
echo $OUTPUT->notification(get_string('takeabackupwarning', 'tool_httpsreplace'));
echo $OUTPUT->box_end();
if (!is_https()) {
echo $OUTPUT->notification(get_string('httpwarning', 'tool_httpsreplace'), 'warning');
}
$form = new \tool_httpsreplace\form();
@@ -89,6 +89,7 @@ if (!$data = $form->get_data()) {
$table->data = $data;
echo html_writer::table($table);
}
echo $OUTPUT->notification(get_string('takeabackupwarning', 'tool_httpsreplace'), 'warning');
$form->display();
} else {
// Scroll to the end when finished.