X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=blackout%2Fblackout.php;h=834956114e4db95385b98e22603847d785ca645b;hb=c12542ef963a841236ebb0b0ff6ab77c53abcb5e;hp=4c2a74b6de3aadc57bf83a72e31881eb6f27aadf;hpb=3da6f1471cc8482e626fa3ad4530ee7cd858f813;p=friendica-addons.git diff --git a/blackout/blackout.php b/blackout/blackout.php index 4c2a74b6..83495611 100644 --- a/blackout/blackout.php +++ b/blackout/blackout.php @@ -95,12 +95,7 @@ function blackout_plugin_admin(&$a, &$o) { if (! is_string($myurl)) { $myurl = "http://www.example.com"; } $t = get_markup_template( "admin.tpl", "addon/blackout/" ); - $includes = array( - '$field_input' => 'field_input.tpl', - ); - $includes = set_template_includes($a->theme['template_engine'], $includes); - - $o = replace_macros($t, $includes + array( + $o = replace_macros($t, array( '$submit' => t('Submit'), '$rurl' => array("rurl", "Redirect URL", $myurl, "all your visitors from the web will be redirected to this URL"), '$startdate' => array("startdate", "Begin of the Blackout
(YYYY-MM-DD hh:mm)", $mystart, "format is YYYY year, MM month, DD day, hh hour and mm minute"),