Skip to content

Commit 9c7dbba

Browse files
committed
#564 Reword event descriptions
1 parent 0aaec6f commit 9c7dbba

File tree

6 files changed

+12
-12
lines changed

6 files changed

+12
-12
lines changed

classes/event/element_created.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@ protected function init() {
5050
public function get_description() {
5151
if ($this->contextlevel == \context_system::instance()->contextlevel) {
5252
// If CONTEXT_SYSTEM assume it's a template.
53-
return "The user with id '$this->userid' created an element with id '$this->objectid'.";
53+
return "The user with id '$this->userid' created the element with id '$this->objectid'.";
5454
} else {
5555
// Else assume it's a module instance in a course.
56-
return "The user with id '$this->userid' created an element with id '$this->objectid' in the certificate " .
56+
return "The user with id '$this->userid' created the element with id '$this->objectid' in the certificate " .
5757
"in course module '$this->contextinstanceid'.";
5858
}
5959
}

classes/event/element_deleted.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@ protected function init() {
5050
public function get_description() {
5151
if ($this->contextlevel == \context_system::instance()->contextlevel) {
5252
// If CONTEXT_SYSTEM assume it's a template.
53-
return "The user with id '$this->userid' deleted an element with id '$this->objectid'.";
53+
return "The user with id '$this->userid' deleted the element with id '$this->objectid'.";
5454
} else {
5555
// Else assume it's a module instance in a course.
56-
return "The user with id '$this->userid' deleted an element with id '$this->objectid' in the certificate " .
56+
return "The user with id '$this->userid' deleted the element with id '$this->objectid' in the certificate " .
5757
"in course module '$this->contextinstanceid'.";
5858
}
5959
}

classes/event/element_updated.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@ protected function init() {
5050
public function get_description() {
5151
if ($this->contextlevel == \context_system::instance()->contextlevel) {
5252
// If CONTEXT_SYSTEM assume it's a template.
53-
return "The user with id '$this->userid' updated an element with id '$this->objectid'.";
53+
return "The user with id '$this->userid' updated the element with id '$this->objectid'.";
5454
} else {
5555
// Else assume it's a module instance in a course.
56-
return "The user with id '$this->userid' updated an element with id '$this->objectid' in the certificate " .
56+
return "The user with id '$this->userid' updated the element with id '$this->objectid' in the certificate " .
5757
"in course module '$this->contextinstanceid'.";
5858
}
5959
}

classes/event/page_created.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,10 @@ protected function init() {
5252
public function get_description() {
5353
if ($this->contextlevel == \context_system::instance()->contextlevel) {
5454
// If CONTEXT_SYSTEM assume it's a template.
55-
return "The user with id '$this->userid' created a page with id '$this->objectid'.";
55+
return "The user with id '$this->userid' created the page with id '$this->objectid'.";
5656
} else {
5757
// Else assume it's a module instance in a course.
58-
return "The user with id '$this->userid' created a page with id '$this->objectid' in the certificate " .
58+
return "The user with id '$this->userid' created the page with id '$this->objectid' in the certificate " .
5959
"in course module '$this->contextinstanceid'.";
6060
}
6161
}

classes/event/page_deleted.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,10 @@ protected function init() {
5252
public function get_description() {
5353
if ($this->contextlevel == \context_system::instance()->contextlevel) {
5454
// If CONTEXT_SYSTEM assume it's a template.
55-
return "The user with id '$this->userid' deleted a page with id '$this->objectid'.";
55+
return "The user with id '$this->userid' deleted the page with id '$this->objectid'.";
5656
} else {
5757
// Else assume it's a module instance in a course.
58-
return "The user with id '$this->userid' deleted a page with id '$this->objectid' in the certificate " .
58+
return "The user with id '$this->userid' deleted the page with id '$this->objectid' in the certificate " .
5959
"in course module '$this->contextinstanceid'.";
6060
}
6161
}

classes/event/page_updated.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,10 @@ protected function init() {
5252
public function get_description() {
5353
if ($this->contextlevel == \context_system::instance()->contextlevel) {
5454
// If CONTEXT_SYSTEM assume it's a template.
55-
return "The user with id '$this->userid' updated a page with id '$this->objectid'.";
55+
return "The user with id '$this->userid' updated the page with id '$this->objectid'.";
5656
} else {
5757
// Else assume it's a module instance in a course.
58-
return "The user with id '$this->userid' updated a page with id '$this->objectid' in the certificate " .
58+
return "The user with id '$this->userid' updated the page with id '$this->objectid' in the certificate " .
5959
"in course module '$this->contextinstanceid'.";
6060
}
6161
}

0 commit comments

Comments
 (0)