forked from GNUsocial/gnu-social
Old examples of lacking 'new' before 'Exception'
This commit is contained in:
parent
c01138c16b
commit
4520e8c517
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user