]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - classes/Login_token.php
better output for registration confirmation
[quix0rs-gnu-social.git] / classes / Login_token.php
index 51dc61262eb96592e1f9c665b3caae8a1b2a0e9e..7a9388c947511b2bbb4b9d42cfad324d0198e377 100644 (file)
@@ -35,7 +35,7 @@ class Login_token extends Memcached_DataObject
     public $modified;                        // timestamp()   not_null default_CURRENT_TIMESTAMP
 
     /* Static get */
-    function staticGet($k,$v=NULL) { return DB_DataObject::staticGet('Login_token',$k,$v); }
+    function staticGet($k,$v=NULL) { return Memcached_DataObject::staticGet('Login_token',$k,$v); }
 
     /* the code above is auto generated do not remove the tag below */
     ###END_AUTOCODE
@@ -73,6 +73,8 @@ class Login_token extends Memcached_DataObject
 
         if (!$result) {
             common_log_db_error($login_token, 'INSERT', __FILE__);
+            // TRANS: Exception thrown when trying creating a login token failed.
+            // TRANS: %s is the user nickname for which token creation failed.
             throw new Exception(sprintf(_('Could not create login token for %s'),
                                                  $user->nickname));
         }