From 760dd70519ade43df447196bc29063fe118908b4 Mon Sep 17 00:00:00 2001 From: mensonge Date: Tue, 17 Feb 2009 09:36:20 +0000 Subject: Bug fix: correct popup behaviour. git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@284 b3834d28-1941-0410-a4f8-b48e95affb8f --- edit.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'edit.php') diff --git a/edit.php b/edit.php index 9011ac3..01f2e59 100644 --- a/edit.php +++ b/edit.php @@ -87,12 +87,13 @@ if (!($row = $bookmarkservice->getBookmark(intval($bookmark), true))) { if (POST_DELETE != '') { // Delete bookmark if ($bookmarkservice->deleteBookmark($bookmark)) { - if (POST_REFERRER != '') { + if (POST_POPUP != '') { + $tplVars['msg'] = ''; + } elseif (POST_REFERRER != '') { header('Location: '. POST_REFERRER); } else { header('Location: '. createURL('bookmarks', $currentUser->getUsername())); } - exit(); } else { $tplVars['error'] = T_('Failed to delete bookmark'); $templateservice->loadTemplate('error.500.tpl', $tplVars); -- cgit v1.2.3-54-g00ecf