]> projects.mako.cc - scuttle/blobdiff - watch.php
removed code for string overloading
[scuttle] / watch.php
index 6a01e9a63fab6c35f8e534cee102029de638b0f8..47de13836bd195e770bf1469573d645b2dc84bcd 100644 (file)
--- a/watch.php
+++ b/watch.php
@@ -1,7 +1,6 @@
 <?php
 /***************************************************************************
-Copyright (C) 2004 - 2006 Scuttle project
-http://sourceforge.net/projects/scuttle/
+Copyright (c) 2004 - 2006 Marcus Campbell
 http://scuttle.org/
 
 This program is free software; you can redistribute it and/or modify
@@ -19,8 +18,9 @@ along with this program; if not, write to the Free Software
 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 ***************************************************************************/
 
-require_once('header.inc.php');
-$userservice =& ServiceFactory::getServiceInstance('UserService');
+require_once 'header.inc.php';
+$sf = new ServiceFactory();
+$userservice     =& $sf->getServiceInstance('UserService');
 
 @list($url, $user) = isset($_SERVER['PATH_INFO']) ? explode('/', $_SERVER['PATH_INFO']) : NULL;
 if ($userservice->isLoggedOn() && $user) {

Benjamin Mako Hill || Want to submit a patch?