]> projects.mako.cc - scuttle/blobdiff - ajaxDelete.php
initial patch to cause scuttle to work with PHP 8.2
[scuttle] / ajaxDelete.php
index fb9930177cffc3a6b3b753947fef25870635b8df..0760a8eb91fb9eb9caaf60e8611e7566f7cfa9e6 100644 (file)
@@ -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';
 
 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');
 $bookmark = intval($_GET['id']);
 if (!$bookmarkservice->editAllowed($bookmark)) {
   echo T_('You are not allowed to delete this bookmark');

Benjamin Mako Hill || Want to submit a patch?