Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
035f3a4
)
mod-scorm MDL-19815 Fixed up deprecated error calls
author
Sam Hemelryk
<sam@moodle.com>
Wed, 22 Sep 2010 08:59:09 +0000
(08:59 +0000)
committer
Sam Hemelryk
<sam@moodle.com>
Wed, 22 Sep 2010 08:59:09 +0000
(08:59 +0000)
mod/scorm/api.php
patch
|
blob
|
blame
|
history
diff --git
a/mod/scorm/api.php
b/mod/scorm/api.php
index
87eedf6
..
8f0fad2
100644
(file)
--- a/
mod/scorm/api.php
+++ b/
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')) {