Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MDL-20961 customize notices showed when user information is not inclu…

…ded in baclup
  • Loading branch information...
commit 01c986b64b78bc0fa0020912794151c5310bd4c7 1 parent e223319
@stronk7 stronk7 authored
Showing with 8 additions and 2 deletions.
  1. +6 −1 backup/backup_check.html
  2. +2 −1  lang/en_utf8/moodle.php
View
7 backup/backup_check.html
@@ -133,7 +133,12 @@
$backupprefs->backup_blogs = 0;
$backupprefs->backuproleassignments = array();
- print_simple_box("<font color=\"red\">".get_string("backupnoneusersinfo")."</font>","center", "70%", '', "20", "noticebox");
+ if ($backupuserinfo) { // Based on perms, decide the msg to show
+ $nousersmsgtoshow = 'backupnoneusersinfo';
+ } else {
+ $nousersmsgtoshow = 'backupmissinguserinfoperms';
+ }
+ print_simple_box("<font color=\"red\">".get_string($nousersmsgtoshow)."</font>","center", "70%", '', "20", "noticebox");
echo "<hr />";
}
View
3  lang/en_utf8/moodle.php
@@ -159,7 +159,8 @@
$string['backuplogshelp'] = 'If enabled, then course logs will be included in automated backups';
$string['backupmetacoursehelp'] = 'If enabled, then metacourse info (inherited enrolments) will be included in automated backups';
$string['backupnameformat'] = '%%Y%%m%%d-%%H%%M';
-$string['backupnoneusersinfo'] = 'Notice: You have selected to backup no users (\"none\"), so all the modules backup have been switched to \"without user data\" mode. Please note that the \"exercise\" and \"workshop\" modules aren\'t compatible with this type of backup, so they have been deactivated completely.';
+$string['backupmissinguserinfoperms'] = 'Note: This backup contains no user data. Exercise and Workshop activities will not be included in the backup, since these modules are not compatible with this type of backup.';
+$string['backupnoneusersinfo'] = 'Note: This backup contains no users and so all activities have been switched to \"without user data\" mode. Exercise and Workshop activities will not be included in the backup, since these modules are not compatible with this type of backup.';
$string['backupnonisowarning'] = 'Warning: this backup is from a non-Unicode version of Moodle (pre 1.6). If this backup contains any non-ISO-8859-1 texts then they may be CORRUPTED if you try to restore them to this Unicode version of Moodle. See the <a href=\"http://docs.moodle.org/en/Backup_FAQ\">Backup FAQ</a> for more information about how to recover this backup correctly.';
$string['backupnext'] = 'Next backup';
$string['backuporiginalname'] = 'Backup Name';
Please sign in to comment.
Something went wrong with that request. Please try again.