MDL-28221 resource: fixed a typo in variable names

This commit is contained in:
David Mudrak
2011-07-11 12:04:18 +02:00
parent a938306457
commit 6ca0ba0104
3 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -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;
+4 -4
View File
@@ -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;
}
+2 -2
View File
@@ -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;