if (!$result) {\r
// TRANS: Exception thrown when an IRC attempts count could not be updated.\r
// TRANS: %d is the object ID for which the count could not be updated.\r
- throw Exception(sprintf(_m('Could not increment attempts count for %d.'), $this->id));\r
+ throw new Exception(sprintf(_m('Could not increment attempts count for %d.'), $this->id));\r
}\r
}\r
\r
if (!$result) {
// TRANS: Exception thrown when the user greeting count could not be saved in the database.
// TRANS: %d is a user ID (number).
- throw Exception(sprintf(_m('Could not save new greeting count for %d.'),
+ throw new Exception(sprintf(_m('Could not save new greeting count for %d.'),
$user_id));
}
} else {
if (!$result) {
// TRANS: Exception thrown when the user greeting count could not be saved in the database.
// TRANS: %d is a user ID (number).
- throw Exception(sprintf(_m('Could not increment greeting count for %d.'),
+ throw new Exception(sprintf(_m('Could not increment greeting count for %d.'),
$user_id));
}
}