diff options
Diffstat (limited to 'apps/bookmarks/addBm.php')
-rw-r--r-- | apps/bookmarks/addBm.php | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/apps/bookmarks/addBm.php b/apps/bookmarks/addBm.php index 2dab33afb22..b62fcdfbeb0 100644 --- a/apps/bookmarks/addBm.php +++ b/apps/bookmarks/addBm.php @@ -24,10 +24,7 @@ require_once('../../lib/base.php'); // Check if we are a user -if( !OC_User::isLoggedIn()){ - header( 'Location: '.OC_Helper::linkTo( '', 'index.php' )); - exit(); -} +OC_Util::checkLoggedIn(); require_once('bookmarksHelper.php'); @@ -45,4 +42,4 @@ $tmpl->assign('URL', htmlentities($metadata['url'])); $tmpl->assign('TITLE', htmlentities($metadata['title'])); $tmpl->assign('DESCRIPTION', htmlentities($metadata['description'])); -$tmpl->printPage();
\ No newline at end of file +$tmpl->printPage(); |