1
0
Fork 0
Update more t() calls
This commit is contained in:
Adam Magness 2018-01-22 07:29:50 -05:00
commit ead9d86236
25 changed files with 367 additions and 346 deletions

View file

@ -1,10 +1,13 @@
<?php
/**
* @file mod/maintenance.php
*/
use Friendica\App;
use Friendica\Core\Config;
use Friendica\Core\L10n;
function maintenance_content(App $a) {
function maintenance_content(App $a)
{
$reason = Config::get('system', 'maintenance_reason');
if (substr(normalise_link($reason), 0, 7) == 'http://') {
@ -18,7 +21,7 @@ function maintenance_content(App $a) {
header('Retry-After: 600');
return replace_macros(get_markup_template('maintenance.tpl'), [
'$sysdown' => t('System down for maintenance'),
'$sysdown' => L10n::t('System down for maintenance'),
'$reason' => $reason
]);
}