X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=blackout%2Fblackout.php;h=28e5567f75243f1fa509b283fd3be4b8d4809010;hb=2f5abe4b04dc75e415957380dfbb0f6d754244cd;hp=1c34862b28cc55d8551482574d5444a955131c46;hpb=c71f7b0e1a7bb5ca88347b295dd3a4cc3106c5a9;p=friendica-addons.git
diff --git a/blackout/blackout.php b/blackout/blackout.php
index 1c34862b..28e5567f 100644
--- a/blackout/blackout.php
+++ b/blackout/blackout.php
@@ -51,6 +51,7 @@
use Friendica\Core\Config;
use Friendica\Core\Addon;
+use Friendica\Core\L10n;
function blackout_install() {
Addon::registerHook('page_header', 'addon/blackout/blackout.php', 'blackout_redirect');
@@ -98,7 +99,7 @@ function blackout_addon_admin(&$a, &$o) {
$t = get_markup_template( "admin.tpl", "addon/blackout/" );
$o = replace_macros($t, [
- '$submit' => t('Save Settings'),
+ '$submit' => L10n::t('Save Settings'),
'$rurl' => ["rurl", "Redirect URL", $myurl, "all your visitors from the web will be redirected to this URL"],
'$startdate' => ["startdate", "Begin of the Blackout
(YYYY-MM-DD hh:mm)", $mystart, "format is YYYY year, MM month, DD day, hh hour and mm minute"],
'$enddate' => ["enddate", "End of the Blackout
(YYYY-MM-DD hh:mm)", $myend, ""],