]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/Sample/classes/User_greeting_count.php
Old examples of lacking 'new' before 'Exception'
[quix0rs-gnu-social.git] / plugins / Sample / classes / User_greeting_count.php
index 3da00b2d1a8dfa1d61c0344679095297b8dcfe41..6196820af6631c538b2f495b5af9553e98456f46 100644 (file)
@@ -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));
             }
         }