mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-22 13:03:46 +00:00
Installation in a subdirectory made problems with this addon
This commit is contained in:
parent
52e15fd889
commit
6b7fccfb74
1 changed files with 2 additions and 2 deletions
|
@ -159,7 +159,7 @@ function dav_content()
|
||||||
if ($a->argv[2] == "new") {
|
if ($a->argv[2] == "new") {
|
||||||
$o = "";
|
$o = "";
|
||||||
if (isset($_REQUEST["save"])) {
|
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/");
|
$ret = wdcal_postEditPage("new", "", $a->user["uid"], $a->timezone, $a->get_baseurl() . "/dav/wdcal/");
|
||||||
if ($ret["ok"]) notice($ret["msg"]);
|
if ($ret["ok"]) notice($ret["msg"]);
|
||||||
else info($ret["msg"]);
|
else info($ret["msg"]);
|
||||||
|
@ -177,7 +177,7 @@ function dav_content()
|
||||||
if (isset($a->argv[4]) && $a->argv[4] == "edit") {
|
if (isset($a->argv[4]) && $a->argv[4] == "edit") {
|
||||||
$o = "";
|
$o = "";
|
||||||
if (isset($_REQUEST["save"])) {
|
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/");
|
$ret = wdcal_postEditPage($a->argv[3], $a->user["uid"], $a->timezone, $a->get_baseurl() . "/dav/wdcal/");
|
||||||
if ($ret["ok"]) notice($ret["msg"]);
|
if ($ret["ok"]) notice($ret["msg"]);
|
||||||
else info($ret["msg"]);
|
else info($ret["msg"]);
|
||||||
|
|
Loading…
Reference in a new issue