]> projects.mako.cc - scuttle/blobdiff - watch.php
Merge branch 'php8'
[scuttle] / watch.php
index cfd7cee956d1c2568e1cc758d94460264838c7bf..47de13836bd195e770bf1469573d645b2dc84bcd 100644 (file)
--- a/watch.php
+++ b/watch.php
@@ -19,7 +19,8 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 ***************************************************************************/
 
 require_once 'header.inc.php';
 ***************************************************************************/
 
 require_once 'header.inc.php';
-$userservice =& ServiceFactory::getServiceInstance('UserService');
+$sf = new ServiceFactory();
+$userservice     =& $sf->getServiceInstance('UserService');
 
 @list($url, $user) = isset($_SERVER['PATH_INFO']) ? explode('/', $_SERVER['PATH_INFO']) : NULL;
 if ($userservice->isLoggedOn() && $user) {
 
 @list($url, $user) = isset($_SERVER['PATH_INFO']) ? explode('/', $_SERVER['PATH_INFO']) : NULL;
 if ($userservice->isLoggedOn() && $user) {

Benjamin Mako Hill || Want to submit a patch?