]> projects.mako.cc - scuttle/blobdiff - templates/sidebar.block.watchstatus.php
updated readme with information on a series of bugs I know exist
[scuttle] / templates / sidebar.block.watchstatus.php
index d9128467bf5cfddd9f193172da93d617c9607d98..6349fc68ef7f2fccb9c6c5ab33f47a21c05b03db 100644 (file)
@@ -1,5 +1,6 @@
 <?php
 <?php
-$userservice =& ServiceFactory::getServiceInstance('UserService');
+$sf = new ServiceFactory();
+$userservice =& $sf->getServiceInstance('UserService');
 if ($userservice->isLoggedOn()) {
     $currentUser = $userservice->getCurrentUser();
     $currentUsername = $currentUser[$userservice->getFieldName('username')];
 if ($userservice->isLoggedOn()) {
     $currentUser = $userservice->getCurrentUser();
     $currentUsername = $currentUser[$userservice->getFieldName('username')];

Benjamin Mako Hill || Want to submit a patch?