MDL-41415 Events: get_string should not use new
authorRajesh Taneja <rajesh@moodle.com>
Tue, 27 Aug 2013 03:35:32 +0000 (11:35 +0800)
committerRajesh Taneja <rajesh@moodle.com>
Tue, 27 Aug 2013 03:36:26 +0000 (11:36 +0800)
lib/classes/event/user_loggedin.php

index 79ded38..006485f 100644 (file)
@@ -60,7 +60,7 @@ class user_loggedin extends \core\event\base {
      * @return string
      */
     public static function get_name() {
-        return new get_string('event_user_loggedin', 'auth');
+        return get_string('event_user_loggedin', 'auth');
     }
 
     /**