Commit cb52a3a6 authored by Matthias Larisch's avatar Matthias Larisch

Replace some more usages of func

parent fc8b58ea
......@@ -6,6 +6,9 @@ use Redis;
class Mem
{
/**
* @var Redis
*/
public static $cache;
public static $connected;
private static $func;
......
......@@ -11,6 +11,9 @@ use Foodsharing\Modules\Console\ConsoleControl;
class MailsControl extends ConsoleControl
{
/**
* @var fSMTP
*/
public static $smtp = false;
public static $last_connect;
......
......@@ -146,7 +146,7 @@ class MaintenanceControl extends ConsoleControl
$inactive_fsids[$fs['id']] = $fs['id'];
$this->tplMail(27, $fs['email'], array(
'name' => $fs['name'],
'anrede' => s('anrede_' . $fs['geschlecht'])
'anrede' => $this->func->s('anrede_' . $fs['geschlecht'])
));
$this->infoToBotsUserDeactivated($fs);
......@@ -163,7 +163,7 @@ class MaintenanceControl extends ConsoleControl
foreach ($foodsaver as $fs) {
$this->tplMail(26, $fs['email'], array(
'name' => $fs['name'],
'anrede' => s('anrede_' . $fs['geschlecht'])
'anrede' => $this->func->s('anrede_' . $fs['geschlecht'])
));
}
......@@ -428,7 +428,7 @@ class MaintenanceControl extends ConsoleControl
self::info('send ' . count($foodsaver) . ' warnings...');
foreach ($foodsaver as $fs) {
$this->tplMail(28, $fs['fs_email'], array(
'anrede' => s('anrede_' . $fs['geschlecht']),
'anrede' => $this->func->s('anrede_' . $fs['geschlecht']),
'name' => $fs['fs_name'],
'betrieb' => $fs['betrieb_name'],
'link' => URL_INTERN . '/?page=fsbetrieb&id=' . $fs['betrieb_id']
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment