]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-20625 fixed typos, credit goes to Martin Langhoff
authorPetr Skoda <skodak@moodle.org>
Sat, 7 Nov 2009 16:00:13 +0000 (16:00 +0000)
committerPetr Skoda <skodak@moodle.org>
Sat, 7 Nov 2009 16:00:13 +0000 (16:00 +0000)
lib/deprecatedlib.php
lib/dml/simpletest/testdml.php
lib/eventslib.php

index 2258612b4c08ae247d0cc63b7516d17a2b8051f4..e918d1a86d680d93fc7cce7c839944deac87fb17 100644 (file)
@@ -576,7 +576,7 @@ function get_current_group($courseid, $full = false) {
 /**
  * Inndicates fatal error. This function was originally printing the
  * error message directly, since 2.0 it is throwing exception instead.
- * The error printing is handled in default exception hadnler.
+ * The error printing is handled in default exception handler.
  *
  * Old method, don't call directly in new code - use print_error instead.
  *
index 2ed566c528b9b8eb3e26c2c48570c59b8fa4e98d..6e83e72d0ccbe027e9794156a03f2c6ed3cbbb3e 100755 (executable)
@@ -2451,7 +2451,7 @@ class dml_test extends UnitTestCase {
             $this->assertEqual(get_class($e), 'dml_transaction_exception');
         }
         $this->assertEqual(2, $DB->count_records($tablename)); // not rolled back yet
-        // the forced rollback is done from the default_exception hadnler and similar places,
+        // the forced rollback is done from the default_exception handler and similar places,
         // let's do it manually here
         $this->assertTrue($DB->is_transaction_started());
         $DB->force_transaction_rollback();
@@ -2522,7 +2522,7 @@ class dml_test extends UnitTestCase {
         } catch (Exception $e) {
             $this->assertEqual(get_class($e), 'dml_transaction_exception');
         }
-        // this is done in default exception hadnler usually
+        // this is done in default exception handler usually
         $this->assertTrue($DB->is_transaction_started());
         $this->assertEqual(2, $DB->count_records($tablename)); // not rolled back yet
         $DB->force_transaction_rollback();
@@ -2554,7 +2554,7 @@ class dml_test extends UnitTestCase {
             // the rollback was used already once, no way to use it again
             $this->assertEqual(get_class($e), 'dml_transaction_exception');
         }
-        // this is done in default exception hadnler usually
+        // this is done in default exception handler usually
         $this->assertTrue($DB->is_transaction_started());
         $DB->force_transaction_rollback();
         $DB->delete_records($tablename);
index 15886b57cd0af795aee9c9cf1f7e173b88a7fafb..47570c47bc16eeb0654abccf957398bf63dd40ed 100755 (executable)
@@ -429,7 +429,7 @@ function events_trigger($eventname, $eventdata) {
                 // we need to send them to queue instead - this is slow but necessary.
                 // It could be improved in future by adding internal/external flag to each handler.
 
-                $DB->set_field('events_handlers', 'status', ($hadnler->status+1), array('id'=>$handler->id));
+                $DB->set_field('events_handlers', 'status', ($handler->status+1), array('id'=>$handler->id));
                 // reset static handler cache
                 events_get_handlers('reset');