X-Git-Url: https://projects.mako.cc/source/scuttle/blobdiff_plain/4aa12354e396c6f1551076d515e0e7a81bf54266..91d3a96bb7741ba92d2d3d7a7dc7d18e0d79688f:/ajaxDelete.php diff --git a/ajaxDelete.php b/ajaxDelete.php index fb99301..0760a8e 100644 --- a/ajaxDelete.php +++ b/ajaxDelete.php @@ -23,7 +23,8 @@ header('Last-Modified: '. gmdate("D, d M Y H:i:s") .' GMT'); header('Cache-Control: no-cache, must-revalidate'); require_once 'header.inc.php'; -$bookmarkservice =& ServiceFactory::getServiceInstance('BookmarkService'); +$sf = new ServiceFactory(); +$bookmarkservice =& $sf->getServiceInstance('BookmarkService'); $bookmark = intval($_GET['id']); if (!$bookmarkservice->editAllowed($bookmark)) { echo T_('You are not allowed to delete this bookmark');