]> git.mxchange.org Git - friendica-addons.git/blobdiff - blackout/blackout.php
Merge pull request #535 from annando/issue-1312
[friendica-addons.git] / blackout / blackout.php
index 1c34862b28cc55d8551482574d5444a955131c46..28e5567f75243f1fa509b283fd3be4b8d4809010 100644 (file)
@@ -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<br />(YYYY-MM-DD hh:mm)", $mystart, "format is <em>YYYY</em> year, <em>MM</em> month, <em>DD</em> day, <em>hh</em> hour and <em>mm</em> minute"],
         '$enddate' => ["enddate", "End of the Blackout<br />(YYYY-MM-DD hh:mm)", $myend, ""],