]> projects.mako.cc - scuttle/blobdiff - templates/sidebar.block.tagactions.php
Merge branch 'php8'
[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?