* @param mixed $v Value to lookup
*
* @return QnA_Answer object found, or null for no hits
- *
*/
function staticGet($k, $v=null)
{
if (empty($result)) {
common_log_db_error($reminder, 'INSERT', __FILE__);
throw new ServerException(
+ // TRANS: Server exception thrown when a reminder record could not be inserted into the database.
_m('Database error inserting reminder record.')
);
}
<?php
-
/**
* StatusNet - the distributed open-source microblogging tool
*
* @license http://www.fsf.org/licensing/licenses/agpl-3.0.html AGPL 3.0
* @link http://status.net/
*/
+
if (!defined('STATUSNET')) {
exit(1);
}
case ($days > 1 && $days < 2):
if (Email_reminder::needsReminder(self::REGISTER_REMINDER, $confirm, 1)) {
common_log(LOG_INFO, "Sending one day registration confirmation reminder to {$confirm->address}", __FILE__);
- $subject = _m("Reminder - please confirm your registration!");
+ // TRANS: Subject for reminder e-mail.
+ $subject = _m('Reminder - please confirm your registration!');
return EmailReminderPlugin::sendReminder(
self::REGISTER_REMINDER,
$confirm,
case ($days > 3 && $days < 4):
if (Email_reminder::needsReminder(self::REGISTER_REMINDER, $confirm, 3)) {
common_log(LOG_INFO, "Sending three day registration confirmation reminder to {$confirm->address}", __FILE__);
- $subject = _m("Second reminder - please confirm your registration!");
+ // TRANS: Subject for reminder e-mail.
+ $subject = _m('Second reminder - please confirm your registration!');
return EmailReminderPlugin::sendReminder(
self::REGISTER_REMINDER,
$confirm,
case ($days > 7 && $days < 8):
if (Email_reminder::needsReminder(self::REGISTER_REMINDER, $confirm, 7)) {
common_log(LOG_INFO, "Sending one week registration confirmation reminder to {$confirm->address}", __FILE__);
- $subject = _m("Final reminder - please confirm your registration!");
+ // TRANS: Subject for reminder e-mail.
+ $subject = _m('Final reminder - please confirm your registration!');
return EmailReminderPlugin::sendReminder(
self::REGISTER_REMINDER,
$confirm,
}
return true;
}
-
}
<?php
-
/**
* StatusNet - the distributed open-source microblogging tool
*
* @license http://www.fsf.org/licensing/licenses/agpl-3.0.html AGPL 3.0
* @link http://status.net/
*/
+
if (!defined('STATUSNET')) {
exit(1);
}
* @link http://status.net/
*/
class UserReminderHandler extends QueueHandler {
-
/**
* Send the next email reminder to the confirm address
*