MDL-28221 resource: fixed a typo in variable names
This commit is contained in:
@@ -82,7 +82,7 @@ function resource_get_post_actions() {
|
||||
* Add resource instance.
|
||||
* @param object $data
|
||||
* @param object $mform
|
||||
* @return int new resoruce instance id
|
||||
* @return int new resource instance id
|
||||
*/
|
||||
function resource_add_instance($data, $mform) {
|
||||
global $CFG, $DB;
|
||||
|
||||
@@ -322,11 +322,11 @@ function resource_print_intro($resource, $cm, $course, $ignoresettings=false) {
|
||||
function resource_print_tobemigrated($resource, $cm, $course) {
|
||||
global $DB, $OUTPUT;
|
||||
|
||||
$resoruce_old = $DB->get_record('resource_old', array('oldid'=>$resource->id));
|
||||
$resource_old = $DB->get_record('resource_old', array('oldid'=>$resource->id));
|
||||
resource_print_header($resource, $cm, $course);
|
||||
resource_print_heading($resource, $cm, $course);
|
||||
resource_print_intro($resource, $cm, $course);
|
||||
echo $OUTPUT->notification(get_string('notmigrated', 'resource', $resoruce_old->type));
|
||||
echo $OUTPUT->notification(get_string('notmigrated', 'resource', $resource_old->type));
|
||||
echo $OUTPUT->footer();
|
||||
die;
|
||||
}
|
||||
@@ -341,11 +341,11 @@ function resource_print_tobemigrated($resource, $cm, $course) {
|
||||
function resource_print_filenotfound($resource, $cm, $course) {
|
||||
global $DB, $OUTPUT;
|
||||
|
||||
$resoruce_old = $DB->get_record('resource_old', array('oldid'=>$resource->id));
|
||||
$resource_old = $DB->get_record('resource_old', array('oldid'=>$resource->id));
|
||||
resource_print_header($resource, $cm, $course);
|
||||
resource_print_heading($resource, $cm, $course);
|
||||
resource_print_intro($resource, $cm, $course);
|
||||
echo $OUTPUT->notification(get_string('notmigrated', 'resource', $resoruce_old->type));
|
||||
echo $OUTPUT->notification(get_string('notmigrated', 'resource', $resource_old->type));
|
||||
echo $OUTPUT->footer();
|
||||
die;
|
||||
}
|
||||
|
||||
@@ -39,8 +39,8 @@ class mod_resource_mod_form extends moodleform_mod {
|
||||
|
||||
if ($this->current->instance and $this->current->tobemigrated) {
|
||||
// resource not migrated yet
|
||||
$resoruce_old = $DB->get_record('resource_old', array('oldid'=>$this->current->instance));
|
||||
$mform->addElement('static', 'warning', '', get_string('notmigrated', 'resource', $resoruce_old->type));
|
||||
$resource_old = $DB->get_record('resource_old', array('oldid'=>$this->current->instance));
|
||||
$mform->addElement('static', 'warning', '', get_string('notmigrated', 'resource', $resource_old->type));
|
||||
$mform->addElement('cancel');
|
||||
$this->standard_hidden_coursemodule_elements();
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user