X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=plugins%2FSample%2FUser_greeting_count.php;h=8128343d817f338660cf12dd27af019bc10ff91f;hb=827b13a2a45e3be628f2572fa75bb8a133bc6c7c;hp=38d68c91ed35a473041874bc32d0c15cfa14048d;hpb=42dd460d3b9aa9a8ad147d00de9b6c8e209ab4e9;p=quix0rs-gnu-social.git diff --git a/plugins/Sample/User_greeting_count.php b/plugins/Sample/User_greeting_count.php index 38d68c91ed..8128343d81 100644 --- a/plugins/Sample/User_greeting_count.php +++ b/plugins/Sample/User_greeting_count.php @@ -52,7 +52,6 @@ require_once INSTALLDIR . '/classes/Memcached_DataObject.php'; * * @see DB_DataObject */ - class User_greeting_count extends Memcached_DataObject { public $__table = 'user_greeting_count'; // table name @@ -68,7 +67,6 @@ class User_greeting_count extends Memcached_DataObject * @param mixed $v Value to lookup * * @return User_greeting_count object found, or null for no hits - * */ function staticGet($k, $v=null) { @@ -150,7 +148,6 @@ class User_greeting_count extends Memcached_DataObject $gc = User_greeting_count::staticGet('user_id', $user_id); if (empty($gc)) { - $gc = new User_greeting_count(); $gc->user_id = $user_id; @@ -161,7 +158,7 @@ class User_greeting_count extends Memcached_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 Exception(sprintf(_m('Could not save new greeting count for %d.'), $user_id)); } } else { @@ -174,7 +171,7 @@ class User_greeting_count extends Memcached_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 Exception(sprintf(_m('Could not increment greeting count for %d.'), $user_id)); } }