]> projects.mako.cc - scuttle/blobdiff - ajaxIsAvailable.php
removed code for string overloading
[scuttle] / ajaxIsAvailable.php
index d1a64a3f97b07673a3678ae38ba3eecbb8b575cf..1971dbd0fe8ec4163ff8387f1a37501ca86e49a4 100644 (file)
@@ -23,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';
 
 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']));
 echo !($userservice->isReserved($_GET['username']) || $userservice->getUserByUsername($_GET['username']));

Benjamin Mako Hill || Want to submit a patch?