MDL-30777: Properly implemented error message

This commit is contained in:
Darko Miletic
2011-12-21 00:41:09 +01:00
committed by Eloy Lafuente (stronk7)
parent d7964ccf87
commit 1be36988ac
3 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -99,7 +99,7 @@ class imscc1_converter extends base_converter {
$manifestdir = dirname($manifest);
$cc2moodle = new cc2moodle($manifest);
if ($cc2moodle->is_auth()) {
throw new imscc1_convert_exception('Protected cartridge content - Skipping import!');
throw new imscc1_convert_exception('protected_cc_not_supported');
}
$status = $cc2moodle->generate_moodle_xml();
//Final cleanup
+1 -1
View File
@@ -99,7 +99,7 @@ class imscc11_converter extends base_converter {
$manifestdir = dirname($manifest);
$cc112moodle = new cc112moodle($manifest);
if ($cc112moodle->is_auth()) {
throw new imscc11_convert_exception('Protected cartridge content - Skipping import!');
throw new imscc11_convert_exception('protected_cc_not_supported');
}
$status = $cc112moodle->generate_moodle_xml();
//Final cleanup
+2
View File
@@ -530,3 +530,5 @@ $string['wwwrootslash'] = 'Detected incorrect $CFG->wwwroot in config.php, it mu
$string['xmldberror'] = 'XMLDB error!';
$string['alreadyloggedin'] = 'You are already logged in as {$a}, you need to log out before logging in as different user.';
$string['youcannotdeletecategory'] = 'You cannot delete category \'{$a}\' because you can neither delete the contents, nor move them elsewhere.';
$string['protected_cc_not_supported'] = 'Protected cartridges not supported.';