Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-35056 - Backup/Restore - Converting the 'Unmet Dependencies' Mess…

…age to be a Developer Debug message to make moodle less confusing to the average user
  • Loading branch information...
commit d4f5439de288eb59edcae4d8f0bfd0b67f2680b0 1 parent 5fa7d72
@jsnfwlr jsnfwlr authored
View
2  backup/backup.php
@@ -98,7 +98,7 @@
$renderer = $PAGE->get_renderer('core','backup');
echo $OUTPUT->header();
if ($backup->enforce_changed_dependencies()) {
- echo $renderer->dependency_notification(get_string('dependenciesenforced','backup'));
+ debugging('Your settings have been altered due to unmet dependencies', DEBUG_DEVELOPER);
}
echo $renderer->progress_bar($backup->get_progress_bar());
echo $backup->display($renderer);
View
2  backup/import.php
@@ -154,7 +154,7 @@
// Display the current stage
echo $OUTPUT->header();
if ($backup->enforce_changed_dependencies()) {
- echo $renderer->dependency_notification(get_string('dependenciesenforced','backup'));
+ debugging('Your settings have been altered due to unmet dependencies', DEBUG_DEVELOPER);
}
echo $renderer->progress_bar($backup->get_progress_bar());
echo $backup->display($renderer);
View
2  backup/restore.php
@@ -61,7 +61,7 @@
$renderer = $PAGE->get_renderer('core','backup');
echo $OUTPUT->header();
if (!$restore->is_independent() && $restore->enforce_changed_dependencies()) {
- echo $renderer->dependency_notification(get_string('dependenciesenforced','backup'));
+ debugging('Your settings have been altered due to unmet dependencies', DEBUG_DEVELOPER);
}
echo $renderer->progress_bar($restore->get_progress_bar());
echo $restore->display($renderer);
View
2  course/publish/backup.php
@@ -78,7 +78,7 @@
echo $OUTPUT->header();
echo $OUTPUT->heading(get_string('publishcourseon', 'hub', !empty($hubname)?$hubname:$huburl), 3, 'main');
if ($backup->enforce_changed_dependencies()) {
- echo $renderer->dependency_notification(get_string('dependenciesenforced', 'backup'));
+ debugging('Your settings have been altered due to unmet dependencies', DEBUG_DEVELOPER);
}
echo $renderer->progress_bar($backup->get_progress_bar());
echo $backup->display($renderer);
Please sign in to comment.
Something went wrong with that request. Please try again.