diff options
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -1437,6 +1437,7 @@ function renderPage() | |||
1437 | // If we are called from the bookmarklet, we must close the popup: | 1437 | // If we are called from the bookmarklet, we must close the popup: |
1438 | if (isset($_GET['source']) && $_GET['source']=='bookmarklet') { echo '<script language="JavaScript">self.close();</script>'; exit; } | 1438 | if (isset($_GET['source']) && $_GET['source']=='bookmarklet') { echo '<script language="JavaScript">self.close();</script>'; exit; } |
1439 | $returnurl = ( isset($_POST['returnurl']) ? $_POST['returnurl'] : '?' ); | 1439 | $returnurl = ( isset($_POST['returnurl']) ? $_POST['returnurl'] : '?' ); |
1440 | $returnurl .= '#'.smallHash($linkdate); // Scroll to the link which has been edited. | ||
1440 | header('Location: '.$returnurl); // After saving the link, redirect to the page the user was on. | 1441 | header('Location: '.$returnurl); // After saving the link, redirect to the page the user was on. |
1441 | exit; | 1442 | exit; |
1442 | } | 1443 | } |
@@ -1447,6 +1448,7 @@ function renderPage() | |||
1447 | // If we are called from the bookmarklet, we must close the popup; | 1448 | // If we are called from the bookmarklet, we must close the popup; |
1448 | if (isset($_GET['source']) && $_GET['source']=='bookmarklet') { echo '<script language="JavaScript">self.close();</script>'; exit; } | 1449 | if (isset($_GET['source']) && $_GET['source']=='bookmarklet') { echo '<script language="JavaScript">self.close();</script>'; exit; } |
1449 | $returnurl = ( isset($_POST['returnurl']) ? $_POST['returnurl'] : '?' ); | 1450 | $returnurl = ( isset($_POST['returnurl']) ? $_POST['returnurl'] : '?' ); |
1451 | $returnurl .= '#'.smallHash($_POST['lf_linkdate']); // Scroll to the link which has been edited. | ||
1450 | header('Location: '.$returnurl); // After canceling, redirect to the page the user was on. | 1452 | header('Location: '.$returnurl); // After canceling, redirect to the page the user was on. |
1451 | exit; | 1453 | exit; |
1452 | } | 1454 | } |