Permalink
Browse files

MDL-28221 resource: fixed a typo in variable names

  • Loading branch information...
1 parent a938306 commit 6ca0ba0104fa534e995e19b01ed2fe742a5fa1b1 @mudrd8mz mudrd8mz committed Jul 11, 2011
Showing with 7 additions and 7 deletions.
  1. +1 −1 mod/resource/lib.php
  2. +4 −4 mod/resource/locallib.php
  3. +2 −2 mod/resource/mod_form.php
View
@@ -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 @@ function definition() {
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;

0 comments on commit 6ca0ba0

Please sign in to comment.