diff --git a/plugins/Irc/classes/Irc_waiting_message.php b/plugins/Irc/classes/Irc_waiting_message.php index eefd904985..c3fefc8784 100644 --- a/plugins/Irc/classes/Irc_waiting_message.php +++ b/plugins/Irc/classes/Irc_waiting_message.php @@ -83,7 +83,7 @@ class Irc_waiting_message extends Managed_DataObject { if (!$result) { // TRANS: Exception thrown when an IRC attempts count could not be updated. // TRANS: %d is the object ID for which the count could not be updated. - throw Exception(sprintf(_m('Could not increment attempts count for %d.'), $this->id)); + throw new Exception(sprintf(_m('Could not increment attempts count for %d.'), $this->id)); } } diff --git a/plugins/Sample/classes/User_greeting_count.php b/plugins/Sample/classes/User_greeting_count.php index 3da00b2d1a..6196820af6 100644 --- a/plugins/Sample/classes/User_greeting_count.php +++ b/plugins/Sample/classes/User_greeting_count.php @@ -101,7 +101,7 @@ class User_greeting_count extends Managed_DataObject 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 { @@ -114,7 +114,7 @@ class User_greeting_count extends Managed_DataObject 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)); } }