diff options
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -1546,9 +1546,7 @@ function renderPage() | |||
1546 | 1546 | ||
1547 | // If we are called from the bookmarklet, we must close the popup: | 1547 | // If we are called from the bookmarklet, we must close the popup: |
1548 | if (isset($_GET['source']) && $_GET['source']=='bookmarklet') { echo '<script language="JavaScript">self.close();</script>'; exit; } | 1548 | if (isset($_GET['source']) && $_GET['source']=='bookmarklet') { echo '<script language="JavaScript">self.close();</script>'; exit; } |
1549 | $returnurl = ( isset($_POST['returnurl']) ? $_POST['returnurl'] : '?' ); | 1549 | header('Location: ?'); // After deleting the link, redirect to the home page. |
1550 | if ($returnurl=='?') { $returnurl = (isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : '?'); } | ||
1551 | header('Location: '.$returnurl); // After deleting the link, redirect to the page the user was on. | ||
1552 | exit; | 1550 | exit; |
1553 | } | 1551 | } |
1554 | 1552 | ||