summaryrefslogtreecommitdiff
path: root/plugins/Sitemap/Sitemap_user_count.php
diff options
context:
space:
mode:
authorSiebrand Mazeland <s.mazeland@xs4all.nl>2010-10-03 23:54:57 +0200
committerSiebrand Mazeland <s.mazeland@xs4all.nl>2010-10-03 23:54:57 +0200
commit67f97194e446e81e0bc57ef60ae75ba0579170b7 (patch)
tree74c5be7e2a258ebb5fc5031e1c02a51a6f206468 /plugins/Sitemap/Sitemap_user_count.php
parent458512aafdd224f32eb466d78c2d2624f3c86593 (diff)
i18n/L10n review, plugin credits added.
Diffstat (limited to 'plugins/Sitemap/Sitemap_user_count.php')
-rw-r--r--plugins/Sitemap/Sitemap_user_count.php7
1 files changed, 2 insertions, 5 deletions
diff --git a/plugins/Sitemap/Sitemap_user_count.php b/plugins/Sitemap/Sitemap_user_count.php
index 98dd05bfe..0b45021bf 100644
--- a/plugins/Sitemap/Sitemap_user_count.php
+++ b/plugins/Sitemap/Sitemap_user_count.php
@@ -47,7 +47,6 @@ require_once INSTALLDIR . '/classes/Memcached_DataObject.php';
*
* @see DB_DataObject
*/
-
class Sitemap_user_count extends Memcached_DataObject
{
public $__table = 'sitemap_user_count'; // table name
@@ -68,7 +67,6 @@ class Sitemap_user_count extends Memcached_DataObject
* @return Sitemap_user_count object found, or null for no hits
*
*/
-
function staticGet($k, $v=null)
{
return Memcached_DataObject::staticGet('Sitemap_user_count', $k, $v);
@@ -82,7 +80,6 @@ class Sitemap_user_count extends Memcached_DataObject
*
* @return array array of column definitions
*/
-
function table()
{
return array('registration_date' => DB_DATAOBJECT_DATE + DB_DATAOBJECT_NOTNULL,
@@ -118,7 +115,6 @@ class Sitemap_user_count extends Memcached_DataObject
*
* @return array key definitions
*/
-
function keyTypes()
{
return $this->keys();
@@ -235,7 +231,8 @@ class Sitemap_user_count extends Memcached_DataObject
$suc = Sitemap_user_count::staticGet('registration_date', DB_DataObject_Cast::date($d));
if (empty($suc)) {
- throw new Exception("No such registration date: $d");
+ // TRANS: Exception thrown when a registration date cannot be found.
+ throw new Exception(_m("No such registration date: $d."));
}
$orig = clone($suc);