]> projects.mako.cc - scuttle/blobdiff - ajaxIsAvailable.php
initial patch to cause scuttle to work with PHP 8.2
[scuttle] / ajaxIsAvailable.php
index 8cd10c0db93e1c7d41b07666ad6100c9271e9bb0..1971dbd0fe8ec4163ff8387f1a37501ca86e49a4 100644 (file)
@@ -1,7 +1,6 @@
 <?php
 /***************************************************************************
-Copyright (c) 2006 - 2010 Scuttle project
-http://sourceforge.net/projects/scuttle/
+Copyright (c) 2006 - 2010 Marcus Campbell
 http://scuttle.org/
 
 This program is free software; you can redistribute it and/or modify
@@ -24,5 +23,6 @@ header('Last-Modified: '. gmdate("D, d M Y H:i:s") .' GMT');
 header('Cache-Control: no-cache, must-revalidate');
 require_once 'header.inc.php';
 
-$userservice =& ServiceFactory::getServiceInstance('UserService');
+$sf = new ServiceFactory();
+$userservice     =& $sf->getServiceInstance('UserService');
 echo !($userservice->isReserved($_GET['username']) || $userservice->getUserByUsername($_GET['username']));

Benjamin Mako Hill || Want to submit a patch?