]> projects.mako.cc - scuttle/blobdiff - templates/sidebar.block.watchstatus.php
initial patch to cause scuttle to work with PHP 8.2
[scuttle] / templates / sidebar.block.watchstatus.php
index d9128467bf5cfddd9f193172da93d617c9607d98..6349fc68ef7f2fccb9c6c5ab33f47a21c05b03db 100644 (file)
@@ -1,5 +1,6 @@
 <?php
-$userservice =& ServiceFactory::getServiceInstance('UserService');
+$sf = new ServiceFactory();
+$userservice =& $sf->getServiceInstance('UserService');
 if ($userservice->isLoggedOn()) {
     $currentUser = $userservice->getCurrentUser();
     $currentUsername = $currentUser[$userservice->getFieldName('username')];

Benjamin Mako Hill || Want to submit a patch?