Permalink
Browse files

MDL-30777: Properly implemented error message

  • Loading branch information...
1 parent d7964cc commit 1be36988acbae46d1cdfbcbfd1a519884e84c5ba Darko Miletic committed with stronk7 Dec 20, 2011
Showing with 4 additions and 2 deletions.
  1. +1 −1 backup/converter/imscc1/lib.php
  2. +1 −1 backup/converter/imscc11/lib.php
  3. +2 −0 lang/en/error.php
@@ -99,7 +99,7 @@ protected function execute() {
$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
@@ -99,7 +99,7 @@ protected function execute() {
$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
View
@@ -530,3 +530,5 @@
$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.';
+

0 comments on commit 1be3698

Please sign in to comment.