diff --git a/bookmarks.php b/bookmarks.php index 43c2275..6f2463e 100644 --- a/bookmarks.php +++ b/bookmarks.php @@ -185,7 +185,7 @@ if ($templatename == 'editbookmark.tpl') { ); $tplVars['tags'] = POST_TAGS; } else { - $tplVars['row'] = $bookmarkservice->getBookmark($_GET['copyOf'], true); + $tplVars['row'] = $bookmarkservice->getBookmark(GET_COPYOF, true); if(!$currentUser->isAdmin()) { $tplVars['row']['bPrivateNote'] = ''; //only admin can copy private note } diff --git a/constants.inc.php b/constants.inc.php index 8078141..681a141 100644 --- a/constants.inc.php +++ b/constants.inc.php @@ -39,6 +39,7 @@ define('CRITICAL_ERROR', 204); // Page name define('PAGE_INDEX', "index"); define('PAGE_BOOKMARKS', "bookmarks"); +define('PAGE_WATCHLIST', "watchlist"); // Miscellanous diff --git a/templates/bookmarks.tpl.php b/templates/bookmarks.tpl.php index 1bc6f61..777e7ca 100644 --- a/templates/bookmarks.tpl.php +++ b/templates/bookmarks.tpl.php @@ -21,7 +21,7 @@ include('search.inc.php'); -isAdmin($userid)): ?> +isAdmin($userid) && $pageName != PAGE_WATCHLIST) : ?>