Skip to content
Browse files

mod-scorm MDL-19815 Fixed up deprecated error calls

  • Loading branch information...
1 parent 035f3a4 commit 8909cbdc406c1b196c36acc652e27cdfab328432 @samhemelryk samhemelryk committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 mod/scorm/api.php
View
4 mod/scorm/api.php
@@ -71,10 +71,10 @@
$userdata->$key = addslashes_js($value);
}
} else {
- error('Sco not found');
+ print_error('cannotfindsco', 'scorm');
}
if (!$sco = scorm_get_sco($scoid)) {
- error('Sco not found');
+ print_error('cannotfindsco', 'scorm');
}
$scorm->version = strtolower(clean_param($scorm->version, PARAM_SAFEDIR)); // Just to be safe
if (file_exists($CFG->dirroot.'/mod/scorm/datamodels/'.$scorm->version.'.js.php')) {

0 comments on commit 8909cbd

Please sign in to comment.
Something went wrong with that request. Please try again.