]> git.mxchange.org Git - friendica-addons.git/blobdiff - blackout/blackout.php
"remote self" should work now with the addons
[friendica-addons.git] / blackout / blackout.php
index 4c2a74b6de3aadc57bf83a72e31881eb6f27aadf..3678969e340e7f689f522acfeab1946525657fb8 100644 (file)
@@ -4,7 +4,7 @@
  * Description: Blackout your ~friendica node during a given period, requires PHP >= 5.3
  * License: MIT
  * Version: 1.0
- * Author: Tobias Diekershoff <https://diekershoff.homeunix.net/friendika/~tobias>
+ * Author: Tobias Diekershoff <https://f.diekershoff.de/~tobias>
  *
  * About
  * =====
@@ -95,13 +95,8 @@ 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(
-        '$submit' => t('Submit'),
+   $o = replace_macros($t, array(
+        '$submit' => t('Save Settings'),
         '$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<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' => array("enddate", "End of the Blackout<br />(YYYY-MM-DD hh:mm)", $myend, ""),