X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=dav%2Ffriendica%2Fmain.php;h=05f6f71406164b5fcf22764e2352980605e4cebb;hb=6a809a926c1818232c3ebafbffe5b4fd54eae805;hp=1025a7866704174e1952c3baa763c26578575618;hpb=db91eb4ae6ab0a3c9fb0627f0bb405aac70a0440;p=friendica-addons.git diff --git a/dav/friendica/main.php b/dav/friendica/main.php index 1025a786..05f6f714 100644 --- a/dav/friendica/main.php +++ b/dav/friendica/main.php @@ -159,7 +159,7 @@ function dav_content() if ($a->argv[2] == "new") { $o = ""; if (isset($_REQUEST["save"])) { - check_form_security_token_redirectOnErr($a->get_baseurl() . "/dav/wdcal/", "caledit"); + check_form_security_token_redirectOnErr("/dav/wdcal/", "caledit"); $ret = wdcal_postEditPage("new", "", $a->user["uid"], $a->timezone, $a->get_baseurl() . "/dav/wdcal/"); if ($ret["ok"]) notice($ret["msg"]); else info($ret["msg"]); @@ -177,7 +177,7 @@ function dav_content() if (isset($a->argv[4]) && $a->argv[4] == "edit") { $o = ""; if (isset($_REQUEST["save"])) { - check_form_security_token_redirectOnErr($a->get_baseurl() . "/dav/wdcal/", "caledit"); + check_form_security_token_redirectOnErr("/dav/wdcal/", "caledit"); $ret = wdcal_postEditPage($a->argv[3], $a->user["uid"], $a->timezone, $a->get_baseurl() . "/dav/wdcal/"); if ($ret["ok"]) notice($ret["msg"]); else info($ret["msg"]); @@ -285,8 +285,8 @@ function dav_cron(&$a, &$b) 'textVersion' => $text_text, 'additionalMailHeader' => "", ); - require_once('include/enotify.php'); - enotify::send($params); + require_once('include/Emailer.php'); + Emailer::send($params); } break; }