Permalink
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...
1 parent 46b5537 commit c8d1e4aa8c13bdc0eef0e36a0c4bbb370c831db0 @jsnfwlr jsnfwlr committed with Sam Hemelryk Nov 8, 2012
Showing with 4 additions and 4 deletions.
  1. +1 −1 backup/backup.php
  2. +1 −1 backup/import.php
  3. +1 −1 backup/restore.php
  4. +1 −1 course/publish/backup.php
View
@@ -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
@@ -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
@@ -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);
@@ -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);

0 comments on commit c8d1e4a

Please sign in to comment.