]> projects.mako.cc - scuttle/blobdiff - templates/toolbar.inc.php
initial patch to cause scuttle to work with PHP 8.2
[scuttle] / templates / toolbar.inc.php
index 023ed3bcb8f3d850cfdc55b726494e7295a50f7d..37193fd48bf532cd81c616f3608090d9433e6c6c 100644 (file)
@@ -1,5 +1,6 @@
 <?php
 <?php
-$userservice =& ServiceFactory::getServiceInstance('UserService');
+$sf = new ServiceFactory();
+$userservice =& $sf->getServiceInstance('UserService');
 if ($userservice->isLoggedOn()) {
     $cUser = $userservice->getCurrentUser();
     $cUsername = $cUser[$userservice->getFieldName('username')];
 if ($userservice->isLoggedOn()) {
     $cUser = $userservice->getCurrentUser();
     $cUsername = $cUser[$userservice->getFieldName('username')];

Benjamin Mako Hill || Want to submit a patch?