]> projects.mako.cc - scuttle/blobdiff - templates/sidebar.block.tagactions.php
initial patch to cause scuttle to work with PHP 8.2
[scuttle] / templates / sidebar.block.tagactions.php
index 836c40cf612abf877a75bff041baf27bf6a5936b..07bb2010e52fc689619d8d95a258372e7e432c41 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?