Commit 5e8eb969 authored by Frederic Massart's avatar Frederic Massart
Browse files

MDL-40055 mod_assign: get_name() uses get_string() not lang_string

parent bd2e9829
...@@ -63,10 +63,10 @@ class all_submissions_downloaded extends \core\event\base { ...@@ -63,10 +63,10 @@ class all_submissions_downloaded extends \core\event\base {
/** /**
* Return localised event name. * Return localised event name.
* *
* @return \lang_string * @return string
*/ */
public static function get_name() { public static function get_name() {
return new \lang_string('event_all_submissions_downloaded', 'mod_assign'); return get_string('event_all_submissions_downloaded', 'mod_assign');
} }
/** /**
......
...@@ -88,10 +88,10 @@ class assessable_submitted extends \core\event\assessable_submitted { ...@@ -88,10 +88,10 @@ class assessable_submitted extends \core\event\assessable_submitted {
/** /**
* Return localised event name. * Return localised event name.
* *
* @return \lang_string * @return string
*/ */
public static function get_name() { public static function get_name() {
return new \lang_string('event_assessable_submitted', 'mod_assign'); return get_string('event_assessable_submitted', 'mod_assign');
} }
/** /**
......
...@@ -63,10 +63,10 @@ class extension_granted extends \core\event\base { ...@@ -63,10 +63,10 @@ class extension_granted extends \core\event\base {
/** /**
* Return localised event name. * Return localised event name.
* *
* @return \lang_string * @return string
*/ */
public static function get_name() { public static function get_name() {
return new \lang_string('event_extension_granted', 'mod_assign'); return get_string('event_extension_granted', 'mod_assign');
} }
/** /**
......
...@@ -63,10 +63,10 @@ class identities_revealed extends \core\event\base { ...@@ -63,10 +63,10 @@ class identities_revealed extends \core\event\base {
/** /**
* Return localised event name. * Return localised event name.
* *
* @return \lang_string * @return string
*/ */
public static function get_name() { public static function get_name() {
return new \lang_string('event_identities_revealed', 'mod_assign'); return get_string('event_identities_revealed', 'mod_assign');
} }
/** /**
......
...@@ -63,10 +63,10 @@ class marker_updated extends \core\event\base { ...@@ -63,10 +63,10 @@ class marker_updated extends \core\event\base {
/** /**
* Return localised event name. * Return localised event name.
* *
* @return \lang_string * @return string
*/ */
public static function get_name() { public static function get_name() {
return new \lang_string('event_marker_updated', 'mod_assign'); return get_string('event_marker_updated', 'mod_assign');
} }
/** /**
......
...@@ -63,10 +63,10 @@ class submission_duplicated extends \core\event\base { ...@@ -63,10 +63,10 @@ class submission_duplicated extends \core\event\base {
/** /**
* Return localised event name. * Return localised event name.
* *
* @return \lang_string * @return string
*/ */
public static function get_name() { public static function get_name() {
return new \lang_string('event_submission_duplicated', 'mod_assign'); return get_string('event_submission_duplicated', 'mod_assign');
} }
/** /**
......
...@@ -63,10 +63,10 @@ class submission_graded extends \core\event\base { ...@@ -63,10 +63,10 @@ class submission_graded extends \core\event\base {
/** /**
* Return localised event name. * Return localised event name.
* *
* @return \lang_string * @return string
*/ */
public static function get_name() { public static function get_name() {
return new \lang_string('event_submission_graded', 'mod_assign'); return get_string('event_submission_graded', 'mod_assign');
} }
/** /**
......
...@@ -63,10 +63,10 @@ class submission_locked extends \core\event\base { ...@@ -63,10 +63,10 @@ class submission_locked extends \core\event\base {
/** /**
* Return localised event name. * Return localised event name.
* *
* @return \lang_string * @return string
*/ */
public static function get_name() { public static function get_name() {
return new \lang_string('event_submission_locked', 'mod_assign'); return get_string('event_submission_locked', 'mod_assign');
} }
/** /**
......
...@@ -63,10 +63,10 @@ class submission_status_updated extends \core\event\base { ...@@ -63,10 +63,10 @@ class submission_status_updated extends \core\event\base {
/** /**
* Return localised event name. * Return localised event name.
* *
* @return \lang_string * @return string
*/ */
public static function get_name() { public static function get_name() {
return new \lang_string('event_submission_status_updated', 'mod_assign'); return get_string('event_submission_status_updated', 'mod_assign');
} }
/** /**
......
...@@ -63,10 +63,10 @@ class submission_unlocked extends \core\event\base { ...@@ -63,10 +63,10 @@ class submission_unlocked extends \core\event\base {
/** /**
* Return localised event name. * Return localised event name.
* *
* @return \lang_string * @return string
*/ */
public static function get_name() { public static function get_name() {
return new \lang_string('event_submission_unlocked', 'mod_assign'); return get_string('event_submission_unlocked', 'mod_assign');
} }
/** /**
......
...@@ -63,10 +63,10 @@ class workflow_state_updated extends \core\event\base { ...@@ -63,10 +63,10 @@ class workflow_state_updated extends \core\event\base {
/** /**
* Return localised event name. * Return localised event name.
* *
* @return \lang_string * @return string
*/ */
public static function get_name() { public static function get_name() {
return new \lang_string('event_workflow_state_updated', 'mod_assign'); return get_string('event_workflow_state_updated', 'mod_assign');
} }
/** /**
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment