diff options
author | Andrew Dolgov <[email protected]> | 2021-03-04 13:40:54 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2021-03-04 13:40:54 +0300 |
commit | 4fda5ccd0e248750f68b4a9802044d02f84eb7cc (patch) | |
tree | ce129e5ecec1c37cabd38ab9c439f103f4ca6e55 /plugins/bookmarklets/init.php | |
parent | 30765805fddfcbec2ee18f96905a530ae30427d1 (diff) |
fix a bunch of bookmarklets login forms not leading back
Diffstat (limited to 'plugins/bookmarklets/init.php')
-rw-r--r-- | plugins/bookmarklets/init.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/plugins/bookmarklets/init.php b/plugins/bookmarklets/init.php index ab88d48e7..4bd527623 100644 --- a/plugins/bookmarklets/init.php +++ b/plugins/bookmarklets/init.php @@ -167,7 +167,7 @@ class Bookmarklets extends Plugin { </html> <?php } else { - Handler_Public::_render_login_form(); + Handler_Public::_render_login_form($this->host->get_public_method_url($this, "subscribe")); } } @@ -289,10 +289,12 @@ class Bookmarklets extends Plugin { } } else { - print_error("Not logged in"); + $return_to = $this->host->get_public_method_url($this, "sharepopup"); ?> - <form action="public.php?return=<?= urlencode(Config::make_self_url()) ?>" method="post"> + <?= format_error("Not logged in") ?> + + <form action="public.php?return=<?= urlencode($return_to) ?>" method="post"> <input type="hidden" name="op" value="login"> |