improved spelling
authorPetr Skoda <skodak@moodle.org>
Sat, 18 Sep 2010 12:31:20 +0000 (12:31 +0000)
committerPetr Skoda <skodak@moodle.org>
Sat, 18 Sep 2010 12:31:20 +0000 (12:31 +0000)
33 files changed:
backup/moodle2/restore_stepslib.php
enrol/category/locallib.php
enrol/ldap/lib.php
mod/assignment/restorelib.php
mod/chat/backup/moodle2/restore_chat_stepslib.php
mod/chat/restorelib.php
mod/choice/backup/moodle2/restore_choice_stepslib.php
mod/choice/db/upgrade.php
mod/choice/lib.php
mod/choice/renderer.php
mod/choice/restorelib.php
mod/choice/styles.css
mod/feedback/backup/moodle2/restore_feedback_stepslib.php
mod/feedback/restorelib.php
mod/folder/backup/moodle2/restore_folder_stepslib.php
mod/forum/restorelib.php
mod/glossary/restorelib.php
mod/imscp/backup/moodle2/restore_imscp_stepslib.php
mod/label/backup/moodle2/restore_label_stepslib.php
mod/label/restorelib.php
mod/lesson/backup/moodle2/restore_lesson_stepslib.php
mod/lesson/restorelib.php
mod/page/backup/moodle2/restore_page_stepslib.php
mod/quiz/restorelib.php
mod/quiz/restorelibpre15.php
mod/resource/backup/moodle2/restore_resource_stepslib.php
mod/scorm/backup/moodle2/restore_scorm_stepslib.php
mod/scorm/restorelib.php
mod/survey/backup/moodle2/restore_survey_stepslib.php
mod/survey/restorelib.php
mod/url/backup/moodle2/restore_url_stepslib.php
mod/wiki/backup/moodle2/restore_wiki_stepslib.php
mod/workshop/backup/moodle2/restore_workshop_stepslib.php

index 386d8f4..12d67ae 100644 (file)
@@ -194,7 +194,7 @@ class restore_gradebook_structure_step extends restore_structure_step {
             if ($data->itemtype=='course' && !empty($coursecategory)) {
                 $data->iteminstance = $coursecategory->id;
             }
-            
+
             $newitemid = $DB->insert_record('grade_items', $data);
         }
         $this->set_mapping('grade_item', $oldid, $newitemid);
@@ -310,7 +310,7 @@ class restore_gradebook_structure_step extends restore_structure_step {
             'courseid' => $this->get_courseid()
         );
         $grade_category = new stdclass();
-        
+
         $rs = $DB->get_recordset('grade_categories', $conditions);
         if (!empty($rs)) {
             //get all the parents correct first as grade_category::build_path() loads category parents from the DB
@@ -1372,7 +1372,7 @@ class restore_course_completion_structure_step extends restore_structure_step {
 
         // This may be empty if criteria could not be restored
         $data->criteriaid = $this->get_mappingid('course_completion_criteria', $data->criteriaid);
-        
+
         $data->course = $this->get_courseid();
         $data->userid = $this->get_mappingid('user', $data->userid);
 
@@ -1915,7 +1915,7 @@ abstract class restore_activity_structure_step extends restore_structure_step {
     }
 
     /**
-     * This must be invoked inmediately after creating the "module" activity record (forum, choice...)
+     * This must be invoked immediately after creating the "module" activity record (forum, choice...)
      * and will adjust the new activity id (the instance) in various places
      */
     protected function apply_activity_instance($newitemid) {
index 0b8137f..6924eaa 100644 (file)
@@ -260,7 +260,7 @@ function enrol_category_sync_full() {
     $params['courselevel'] = CONTEXT_COURSE;
     $params['catlevel'] = CONTEXT_COURSECAT;
 
-    // first of all add necessay enrol instances to all courses
+    // first of all add necessary enrol instances to all courses
     $parentcat = $DB->sql_concat("cat.path", "'/%'");
     $sql = "SELECT DISTINCT c.*
               FROM {course} c
index 736a3d7..cc1e300 100644 (file)
@@ -829,7 +829,7 @@ class enrol_ldap_plugin extends enrol_plugin {
                 $objectclass = ldap_get_values($ldapconnection, $entry, 'objectClass');
 
                 if (!in_array('group', $objectclass)) {
-                    // Not a group, so return inmediately.
+                    // Not a group, so return immediately.
                     return array($group);
                 }
 
index c90d807..81354ae 100644 (file)
@@ -22,7 +22,7 @@
     //-----------------------------------------------------------
 
 
-    //This function returns a log record with all the necessay transformations
+    //This function returns a log record with all the necessary transformations
     //done. It's used by restore_log_module() to restore modules log.
     function assignment_restore_logs($restore,$log) {
 
index 89fa853..9c08a54 100644 (file)
@@ -57,7 +57,7 @@ class restore_chat_activity_structure_step extends restore_activity_structure_st
 
         // insert the chat record
         $newitemid = $DB->insert_record('chat', $data);
-        // inmediately after inserting "activity" record, call this
+        // immediately after inserting "activity" record, call this
         $this->apply_activity_instance($newitemid);
     }
 
index 261bf09..84eb13c 100644 (file)
@@ -21,7 +21,7 @@
     //
     //-----------------------------------------------------------
 
-    //This function returns a log record with all the necessay transformations
+    //This function returns a log record with all the necessary transformations
     //done. It's used by restore_log_module() to restore modules log.
     function chat_restore_logs($restore,$log) {
         $status = false;
index bbfdcf4..75a56f8 100644 (file)
@@ -59,7 +59,7 @@ class restore_choice_activity_structure_step extends restore_activity_structure_
 
         // insert the choice record
         $newitemid = $DB->insert_record('choice', $data);
-        // inmediately after inserting "activity" record, call this
+        // immediately after inserting "activity" record, call this
         $this->apply_activity_instance($newitemid);
     }
 
index e61a148..4d664d6 100644 (file)
@@ -29,7 +29,7 @@ function xmldb_choice_upgrade($oldversion) {
 
     if ($oldversion < 2009042000) {
 
-    /// Rename field text on table choice to NEWNAMEGOESHERE
+    /// Rename field text on table choice to text
         $table = new xmldb_table('choice');
         $field = new xmldb_field('text', XMLDB_TYPE_TEXT, 'small', null, XMLDB_NOTNULL, null, null, 'name');
 
@@ -42,7 +42,7 @@ function xmldb_choice_upgrade($oldversion) {
 
     if ($oldversion < 2009042001) {
 
-    /// Rename field format on table choice to NEWNAMEGOESHERE
+    /// Rename field format on table choice to format
         $table = new xmldb_table('choice');
         $field = new xmldb_field('format', XMLDB_TYPE_INTEGER, '4', XMLDB_UNSIGNED, XMLDB_NOTNULL, null, '0', 'intro');
 
index c262a91..02b89fe 100644 (file)
@@ -70,6 +70,7 @@ $CHOICE_DISPLAY = array (CHOICE_DISPLAY_HORIZONTAL   => get_string('displayhoriz
 function choice_user_outline($course, $user, $mod, $choice) {
     global $DB;
     if ($answer = $DB->get_record('choice_answers', array('choiceid' => $choice->id, 'userid' => $user->id))) {
+        $result = new object();
         $result->info = "'".format_string(choice_get_option_text($choice, $answer->optionid))."'";
         $result->time = $answer->timemodified;
         return $result;
@@ -88,6 +89,7 @@ function choice_user_outline($course, $user, $mod, $choice) {
 function choice_user_complete($course, $user, $mod, $choice) {
     global $DB;
     if ($answer = $DB->get_record('choice_answers', array("choiceid" => $choice->id, "userid" => $user->id))) {
+        $result = new object();
         $result->info = "'".format_string(choice_get_option_text($choice, $answer->optionid))."'";
         $result->time = $answer->timemodified;
         echo get_string("answered", "choice").": $result->info. ".get_string("updated", '', userdate($result->time));
@@ -415,7 +417,7 @@ function prepare_choice_show_results($choice, $course, $cm, $allresponses, $forc
             if ($choice->showunanswered) {
                 echo "<td class=\"col$count data\" >";
                 // added empty row so that when the next iteration is empty,
-                // we do not get <table></table> erro from w3c validator
+                // we do not get <table></table> error from w3c validator
                 // MDL-7861
                 echo "<table class=\"choiceresponse\"><tr><td></td></tr>";
                 if (!empty($allresponses[0])) {
@@ -437,7 +439,7 @@ function prepare_choice_show_results($choice, $course, $cm, $allresponses, $forc
                     echo '<td class="col'.$count.' data" >';
 
                     // added empty row so that when the next iteration is empty,
-                    // we do not get <table></table> erro from w3c validator
+                    // we do not get <table></table> error from w3c validator
                     // MDL-7861
                     echo '<table class="choiceresponse"><tr><td></td></tr>';
                     if (isset($allresponses[$optionid])) {
index 5c1eb1e..c37d09a 100644 (file)
@@ -41,21 +41,21 @@ class mod_choice_renderer extends plugin_renderer_base {
         }
         $target = new moodle_url('/mod/choice/view.php');
         $attributes = array('method'=>'POST', 'target'=>$target, 'class'=> $layoutclass);
-        
+
         $html = html_writer::start_tag('form', $attributes);
         $html .= html_writer::start_tag('ul', array('class'=>'choices' ));
-        
+
         $availableoption = count($options['options']);
-        foreach ($options['options'] as $option) {            
+        foreach ($options['options'] as $option) {
             $html .= html_writer::start_tag('li', array('class'=>'option'));
             $option->attributes->name = 'answer';
             $option->attributes->type = 'radio';
-            
+
             $labeltext = $option->text;
-            if (!empty($option->attributes->disabled)) { 
+            if (!empty($option->attributes->disabled)) {
                 $labeltext .= ' ' . get_string('full', 'choice');
                 $availableoption--;
-            }            
+            }
 
             $html .= html_writer::empty_tag('input', (array)$option->attributes);
             $html .= html_writer::tag('label', $labeltext, array('for'=>$option->attributes->name));
@@ -67,7 +67,7 @@ class mod_choice_renderer extends plugin_renderer_base {
         $html .= html_writer::empty_tag('input', array('type'=>'hidden', 'name'=>'sesskey', 'value'=>sesskey()));
         $html .= html_writer::empty_tag('input', array('type'=>'hidden', 'name'=>'id', 'value'=>$coursemoduleid));
 
-        if (!empty($options['hascapability']) && ($options['hascapability'])) {            
+        if (!empty($options['hascapability']) && ($options['hascapability'])) {
             if ($availableoption < 1) {
                $html .= html_writer::tag('label', get_string('choicefull', 'choice'));
             } else {
@@ -81,10 +81,10 @@ class mod_choice_renderer extends plugin_renderer_base {
         } else {
             $html .= html_writer::tag('label', get_string('havetologin', 'choice'));
         }
-        
+
         $html .= html_writer::end_tag('ul');
-        $html .= html_writer::end_tag('form');        
-        
+        $html .= html_writer::end_tag('form');
+
         return $html;
     }
 
@@ -95,20 +95,20 @@ class mod_choice_renderer extends plugin_renderer_base {
      * @return string
      */
     public function display_result($choices, $forcepublish = false) {
-        if (empty($forcepublish)) { //alow the publish setting to be overridden
+        if (empty($forcepublish)) { //allow the publish setting to be overridden
             $forcepublish = $choices->publish;
         }
 
         $displaylayout = $choices->display;
 
-        if ($forcepublish) {  //CHOICE_PUBLISH_NAMES            
+        if ($forcepublish) {  //CHOICE_PUBLISH_NAMES
             return $this->display_publish_name_vertical($choices);
         } else { //CHOICE_PUBLISH_ANONYMOUS';
             if ($displaylayout == DISPLAY_HORIZONTAL_LAYOUT) {
                 return $this->display_publish_anonymous_horizontal($choices);
             }
             return $this->display_publish_anonymous_vertical($choices);
-        }                
+        }
     }
 
     /**
@@ -120,16 +120,16 @@ class mod_choice_renderer extends plugin_renderer_base {
     public function display_publish_name_vertical($choices) {
         $html ='';
         $html .= html_writer::tag('h2',format_string(get_string("responses", "choice")), array('class'=>'main'));
-        
+
         $attributes = array('method'=>'POST');
         $attributes['action'] = new moodle_url('/mod/choice/view.php');
         $attributes['id'] = 'attemptsform';
-                
+
         if ($choices->viewresponsecapability) {
             $html .= html_writer::start_tag('form', $attributes);
             $html .= html_writer::empty_tag('input', array('type'=>'hidden', 'name'=>'id', 'value'=> $choices->coursemoduleid));
             $html .= html_writer::empty_tag('input', array('type'=>'hidden', 'name'=>'sesskey', 'value'=> sesskey()));
-            $html .= html_writer::empty_tag('input', array('type'=>'hidden', 'name'=>'mode', 'value'=>'overview'));                
+            $html .= html_writer::empty_tag('input', array('type'=>'hidden', 'name'=>'mode', 'value'=>'overview'));
         }
 
         $table = new html_table();
@@ -144,7 +144,7 @@ class mod_choice_renderer extends plugin_renderer_base {
 
         $columns = array();
         foreach ($choices->options as $optionid => $options) {
-            $coldata = '';            
+            $coldata = '';
             if ($choices->showunanswered && $optionid == 0) {
                 $coldata .= html_writer::tag('div', format_string(get_string('notanswered', 'choice')), array('class'=>'option'));
             } else if ($optionid > 0) {
@@ -152,13 +152,13 @@ class mod_choice_renderer extends plugin_renderer_base {
             }
             $numberofuser = 0;
             if (!empty($options->user) && count($options->user) > 0) {
-                $numberofuser = count($options->user);                
-            } 
-            
-            $coldata .= html_writer::tag('div', ' ('.$numberofuser. ')', array('class'=>'numberofuser', 'title' => get_string('numberofuser', 'choice')));            
+                $numberofuser = count($options->user);
+            }
+
+            $coldata .= html_writer::tag('div', ' ('.$numberofuser. ')', array('class'=>'numberofuser', 'title' => get_string('numberofuser', 'choice')));
             $columns[] = $coldata;
         }
-        
+
         $table->head = $columns;
 
         $coldata = '';
@@ -167,13 +167,13 @@ class mod_choice_renderer extends plugin_renderer_base {
             $coldata = '';
             if ($choices->showunanswered || $optionid > 0) {
                 if (!empty($options->user)) {
-                    foreach ($options->user as $user) { 
+                    foreach ($options->user as $user) {
                         $data = '';
                         if (empty($user->imagealt)){
                             $user->imagealt = '';
                         }
-                        
-                        if ($choices->viewresponsecapability && $choices->deleterepsonsecapability  && $optionid > 0) {                            
+
+                        if ($choices->viewresponsecapability && $choices->deleterepsonsecapability  && $optionid > 0) {
                             $attemptaction = html_writer::checkbox('attemptid[]', $user->id,'');
                             $data .= html_writer::tag('div', $attemptaction, array('class'=>'attemptaction'));
                         }
@@ -184,23 +184,23 @@ class mod_choice_renderer extends plugin_renderer_base {
                         $name = html_writer::tag('a', fullname($user, $choices->fullnamecapability), array('href'=>$userlink, 'class'=>'username'));
                         $data .= html_writer::tag('div', $name, array('class'=>'fullname'));
                         $data .= html_writer::tag('div','', array('class'=>'clearfloat'));
-                        $coldata .= html_writer::tag('div', $data, array('class'=>'user'));                        
-                    }                    
-                }                
+                        $coldata .= html_writer::tag('div', $data, array('class'=>'user'));
+                    }
+                }
             }
-            
+
             $columns[] = $coldata;
             $count++;
         }
-       
-        $table->data[] = $columns;        
+
+        $table->data[] = $columns;
         foreach ($columns as $d) {
             $table->colclasses[] = 'data';
         }
         $html .= html_writer::tag('div', html_writer::table($table), array('class'=>'response'));
-        
+
         $actiondata = '';
-        if ($choices->viewresponsecapability && $choices->deleterepsonsecapability) {            
+        if ($choices->viewresponsecapability && $choices->deleterepsonsecapability) {
             $selecturl = new moodle_url('#');
 
             $selectallactions = new component_action('click',"select_all_in", array('div',null,'tablecontainer'));
@@ -212,18 +212,18 @@ class mod_choice_renderer extends plugin_renderer_base {
             $actiondata .= $this->output->render($deselectall);
 
             $actiondata .= html_writer::tag('label', ' ' . get_string('withselected', 'quiz') . ' ', array('for'=>'menuaction'));
-            
+
             $actionurl = new moodle_url('/mod/choice/view.php', array('sesskey'=>sesskey(), 'action'=>'delete_confirmation()'));
             $select = new single_select($actionurl, 'action', array('delete'=>get_string('delete')), null, array(''=>get_string('moveselectedusersto', 'choice')), 'attemptsform');
-            
+
             $actiondata .= $this->output->render($select);
         }
         $html .= html_writer::tag('div', $actiondata, array('class'=>'responseaction'));
-        
+
         if ($choices->viewresponsecapability) {
             $html .= html_writer::end_tag('form');
         }
-       
+
         return $html;
     }
 
@@ -236,12 +236,12 @@ class mod_choice_renderer extends plugin_renderer_base {
     public function display_publish_anonymous_vertical($choices) {
         global $CHOICE_COLUMN_HEIGHT;
 
-        $html = '';        
+        $html = '';
         $table = new html_table();
         $table->cellpadding = 5;
-        $table->cellspacing = 0;       
-        $table->attributes['class'] = 'results anonymous ';        
-        $table->data = array();        
+        $table->cellspacing = 0;
+        $table->attributes['class'] = 'results anonymous ';
+        $table->data = array();
         $count = 0;
         ksort($choices->options);
         $columns = array();
@@ -269,7 +269,7 @@ class mod_choice_renderer extends plugin_renderer_base {
         $rowgraph = new html_table_row();
         $rowgraph->cells = $columns;
         $rows[] = $rowgraph;
-        
+
         $columns = array();
         $printskiplink = true;
         foreach ($choices->options as $optionid => $options) {
@@ -277,40 +277,40 @@ class mod_choice_renderer extends plugin_renderer_base {
             $numberofuser = 0;
             if (!empty($options->user)) {
                $numberofuser = count($options->user);
-            }            
+            }
 
             if ($printskiplink) {
                 $columndata .= html_writer::tag('div', '', array('class'=>'skip-block-to', 'id'=>'skipresultgraph'));
                 $printskiplink = false;
             }
-            
+
             if ($choices->showunanswered && $optionid == 0) {
                 $columndata .= html_writer::tag('div', format_string(get_string('notanswered', 'choice')), array('class'=>'option'));
             } else if ($optionid > 0) {
                 $columndata .= html_writer::tag('div', format_string($choices->options[$optionid]->text), array('class'=>'option'));
             }
             $columndata .= html_writer::tag('div', ' ('.$numberofuser.')', array('class'=>'numberofuser', 'title'=> get_string('numberofuser', 'choice')));
-            
+
             if($choices->numberofuser > 0) {
                $percentageamount = ((float)$numberofuser/(float)$choices->numberofuser)*100.0;
             }
             $columndata .= html_writer::tag('div', format_float($percentageamount,1). '%', array('class'=>'percentage'));
-            
+
             $cell = new html_table_cell();
             $cell->text = $columndata;
             $cell->attributes = array('class'=>'data header');
-            $columns[] = $cell;            
+            $columns[] = $cell;
         }
         $rowdata = new html_table_row();
         $rowdata->cells = $columns;
         $rows[] = $rowdata;
 
         $table->data = $rows;
-        
+
         $header = html_writer::tag('h2',format_string(get_string("responses", "choice")));
         $html .= html_writer::tag('div', $header, array('class'=>'responseheader'));
-        $html .= html_writer::tag('a', get_string('skipresultgraph', 'choice'), array('href'=>'#skipresultgraph', 'class'=>'skip-block'));      
-        $html .= html_writer::tag('div', html_writer::table($table), array('class'=>'response'));      
+        $html .= html_writer::tag('a', get_string('skipresultgraph', 'choice'), array('href'=>'#skipresultgraph', 'class'=>'skip-block'));
+        $html .= html_writer::tag('div', html_writer::table($table), array('class'=>'response'));
 
         return $html;
     }
@@ -322,7 +322,7 @@ class mod_choice_renderer extends plugin_renderer_base {
      */
     public function display_publish_anonymous_horizontal($choices) {
         global $CHOICE_COLUMN_WIDTH;
-        
+
         $table = new html_table();
         $table->cellpadding = 5;
         $table->cellspacing = 0;
@@ -333,7 +333,7 @@ class mod_choice_renderer extends plugin_renderer_base {
         ksort($choices->options);
 
         $rows = array();
-        foreach ($choices->options as $optionid => $options) {         
+        foreach ($choices->options as $optionid => $options) {
             $numberofuser = 0;
             $graphcell = new html_table_cell();
             if (!empty($options->user)) {
@@ -351,7 +351,7 @@ class mod_choice_renderer extends plugin_renderer_base {
 
             $skiplink = html_writer::tag('a', get_string('skipresultgraph', 'choice'), array('href'=>'#skipresultgraph'. $optionid, 'class'=>'skip-block'));
             $skiphandler = html_writer::tag('span', '', array('class'=>'skip-block-to', 'id'=>'skipresultgraph'.$optionid));
-            
+
             $graphcell->text = $skiplink . $displaydiagram . $skiphandler;
             $graphcell->attributes = array('class'=>'graph horizontal');
 
@@ -366,7 +366,7 @@ class mod_choice_renderer extends plugin_renderer_base {
             if($choices->numberofuser > 0) {
                $percentageamount = ((float)$numberofuser/(float)$choices->numberofuser)*100.0;
             }
-            $columndata .= html_writer::tag('div', format_float($percentageamount,1). '%', array('class'=>'percentage'));            
+            $columndata .= html_writer::tag('div', format_float($percentageamount,1). '%', array('class'=>'percentage'));
 
             $datacell->text = $columndata;
             $datacell->attributes = array('class'=>'header');
@@ -375,14 +375,14 @@ class mod_choice_renderer extends plugin_renderer_base {
             $row->cells = array($datacell, $graphcell);
             $rows[] = $row;
         }
-        
+
         $table->data = $rows;
-        
+
         $html = '';
         $header = html_writer::tag('h2',format_string(get_string("responses", "choice")));
-        $html .= html_writer::tag('div', $header, array('class'=>'responseheader'));        
+        $html .= html_writer::tag('div', $header, array('class'=>'responseheader'));
         $html .= html_writer::table($table);
-        
+
         return $html;
     }
 }
index 0e41441..07c62c5 100644 (file)
@@ -26,7 +26,7 @@
     //
     //-----------------------------------------------------------
 
-    //This function returns a log record with all the necessay transformations
+    //This function returns a log record with all the necessary transformations
     //done. It's used by restore_log_module() to restore modules log.
     function choice_restore_logs($restore,$log) {
 
index 864e95e..ed2c5aa 100644 (file)
@@ -42,8 +42,8 @@
 #page-mod-choice-report .downloadreport ul li {list-style:none;padding: 0 20px; display: inline;float: left; }
 .path-mod-choice .clearfloat {float:none; clear:both;}
 
-/** 
- * Overide for RTL layout
+/**
+ * Override for RTL layout
  */
 .path-mod-choice.dir-rtl .horizontal .choices .option {padding-right:0px; padding-left: 20px; float:right;}
 .path-mod-choice.dir-rtl .results.anonymous .graph.horizontal {text-align: right;}
index 6dd9c0d..fea78c1 100644 (file)
@@ -61,7 +61,7 @@ class restore_feedback_activity_structure_step extends restore_activity_structur
 
         // insert the feedback record
         $newitemid = $DB->insert_record('feedback', $data);
-        // inmediately after inserting "activity" record, call this
+        // immediately after inserting "activity" record, call this
         $this->apply_activity_instance($newitemid);
     }
 
@@ -71,7 +71,7 @@ class restore_feedback_activity_structure_step extends restore_activity_structur
         $data = (object)$data;
         $oldid = $data->id;
         $data->feedback = $this->get_new_parentid('feedback');
-        
+
         //dependitem
         $data->dependitem = $this->get_mappingid('feedback_item', $data->dependitem);
 
index c7d7b5b..370686f 100644 (file)
@@ -27,7 +27,7 @@
     //-----------------------------------------------------------
 
 
-    //This function returns a log record with all the necessay transformations
+    //This function returns a log record with all the necessary transformations
     //done. It's used by restore_log_module() to restore modules log.
     function feedback_restore_logs($restore,$log) {
 
index d9fdf82..6c655e4 100644 (file)
@@ -50,7 +50,7 @@ class restore_folder_activity_structure_step extends restore_activity_structure_
 
         // insert the folder record
         $newitemid = $DB->insert_record('folder', $data);
-        // inmediately after inserting "activity" record, call this
+        // immediately after inserting "activity" record, call this
         $this->apply_activity_instance($newitemid);
     }
 
index 9f052ac..6709f22 100644 (file)
@@ -53,7 +53,7 @@
     //
     //-----------------------------------------------------------
 
-    //This function returns a log record with all the necessay transformations
+    //This function returns a log record with all the necessary transformations
     //done. It's used by restore_log_module() to restore modules log.
     function forum_restore_logs($restore,$log) {
         global $DB;
index e9c2952..0cb5a75 100644 (file)
@@ -28,7 +28,7 @@
     //
     //-----------------------------------------------------------
 
-    //This function returns a log record with all the necessay transformations
+    //This function returns a log record with all the necessary transformations
     //done. It's used by restore_log_module() to restore modules log.
     function glossary_restore_logs($restore,$log) {
 
index 6f9ca44..cfaf296 100644 (file)
@@ -50,7 +50,7 @@ class restore_imscp_activity_structure_step extends restore_activity_structure_s
 
         // insert the imscp record
         $newitemid = $DB->insert_record('imscp', $data);
-        // inmediately after inserting "activity" record, call this
+        // immediately after inserting "activity" record, call this
         $this->apply_activity_instance($newitemid);
     }
 
index 82da294..c590499 100644 (file)
@@ -49,7 +49,7 @@ class restore_label_activity_structure_step extends restore_activity_structure_s
 
         // insert the label record
         $newitemid = $DB->insert_record('label', $data);
-        // inmediately after inserting "activity" record, call this
+        // immediately after inserting "activity" record, call this
         $this->apply_activity_instance($newitemid);
     }
 
index 9eb4ae2..38ad8b5 100644 (file)
@@ -43,7 +43,7 @@ defined('MOODLE_INTERNAL') || die;
     //
     //-----------------------------------------------------------
 
-    //This function returns a log record with all the necessay transformations
+    //This function returns a log record with all the necessary transformations
     //done. It's used by restore_log_module() to restore modules log.
     function label_restore_logs($restore,$log) {
 
index a8656da..90d0cb6 100644 (file)
@@ -64,7 +64,7 @@ class restore_lesson_activity_structure_step extends restore_activity_structure_
 
         // insert the lesson record
         $newitemid = $DB->insert_record('lesson', $data);
-        // inmediately after inserting "activity" record, call this
+        // immediately after inserting "activity" record, call this
         $this->apply_activity_instance($newitemid);
     }
 
index a3b3b4f..47ea381 100644 (file)
@@ -58,7 +58,7 @@
 defined('MOODLE_INTERNAL') || die();
 
 
-    //This function returns a log record with all the necessay transformations
+    //This function returns a log record with all the necessary transformations
     //done. It's used by restore_log_module() to restore modules log.
     function lesson_restore_logs($restore,$log) {
 
index 779604e..862b07d 100644 (file)
@@ -49,7 +49,7 @@ class restore_page_activity_structure_step extends restore_activity_structure_st
 
         // insert the page record
         $newitemid = $DB->insert_record('page', $data);
-        // inmediately after inserting "activity" record, call this
+        // immediately after inserting "activity" record, call this
         $this->apply_activity_instance($newitemid);
     }
 
index 4c1851c..b64053e 100644 (file)
         return $status;
     }
 
-    //This function returns a log record with all the necessay transformations
+    //This function returns a log record with all the necessary transformations
     //done. It's used by restore_log_module() to restore modules log.
     function quiz_restore_logs($restore,$log) {
 
index 21e66bd..9b3a928 100644 (file)
         return $status;
     }
 
-    //This function returns a log record with all the necessay transformations
+    //This function returns a log record with all the necessary transformations
     //done. It's used by restore_log_module() to restore modules log.
     function quiz_restore_pre15_logs($restore,$log) {
 
index 2e96757..2f4c3eb 100644 (file)
@@ -50,7 +50,7 @@ class restore_resource_activity_structure_step extends restore_activity_structur
 
         // insert the resource record
         $newitemid = $DB->insert_record('resource', $data);
-        // inmediately after inserting "activity" record, call this
+        // immediately after inserting "activity" record, call this
         $this->apply_activity_instance($newitemid);
     }
 
index 98713ad..cb490a2 100644 (file)
@@ -68,7 +68,7 @@ class restore_scorm_activity_structure_step extends restore_activity_structure_s
 
         // insert the scorm record
         $newitemid = $DB->insert_record('scorm', $data);
-        // inmediately after inserting "activity" record, call this
+        // immediately after inserting "activity" record, call this
         $this->apply_activity_instance($newitemid);
     }
 
index d824d63..87fa11d 100755 (executable)
@@ -27,7 +27,7 @@
     //-----------------------------------------------------------
 
 
-    //This function returns a log record with all the necessay transformations
+    //This function returns a log record with all the necessary transformations
     //done. It's used by restore_log_module() to restore modules log.
     function scorm_restore_logs($restore,$log) {
 
index 96e2c3b..1d77d15 100644 (file)
@@ -57,7 +57,7 @@ class restore_survey_activity_structure_step extends restore_activity_structure_
 
         // insert the survey record
         $newitemid = $DB->insert_record('survey', $data);
-        // inmediately after inserting "activity" record, call this
+        // immediately after inserting "activity" record, call this
         $this->apply_activity_instance($newitemid);
     }
 
index cbab393..dd6fb34 100644 (file)
@@ -23,7 +23,7 @@
     //-----------------------------------------------------------
 
 
-    //This function returns a log record with all the necessay transformations
+    //This function returns a log record with all the necessary transformations
     //done. It's used by restore_log_module() to restore modules log.
     function survey_restore_logs($restore,$log) {
 
index b41ac43..1531849 100644 (file)
@@ -49,7 +49,7 @@ class restore_url_activity_structure_step extends restore_activity_structure_ste
 
         // insert the url record
         $newitemid = $DB->insert_record('url', $data);
-        // inmediately after inserting "activity" record, call this
+        // immediately after inserting "activity" record, call this
         $this->apply_activity_instance($newitemid);
     }
 
index 245dcff..f1ddab1 100644 (file)
@@ -63,7 +63,7 @@ class restore_wiki_activity_structure_step extends restore_activity_structure_st
 
         // insert the wiki record
         $newitemid = $DB->insert_record('wiki', $data);
-        // inmediately after inserting "activity" record, call this
+        // immediately after inserting "activity" record, call this
         $this->apply_activity_instance($newitemid);
     }
 
index 78ced49..2a2ad0a 100644 (file)
@@ -113,7 +113,7 @@ class restore_workshop_activity_structure_step extends restore_activity_structur
 
         // insert the workshop record
         $newitemid = $DB->insert_record('workshop', $data);
-        // inmediately after inserting "activity" record, call this
+        // immediately after inserting "activity" record, call this
         $this->apply_activity_instance($newitemid);
     }