]> projects.mako.cc - scuttle/blobdiff - index.php
Merge branch 'php8'
[scuttle] / index.php
index 2a9d8aba01f1b95d35c6a520e6596ad760b401b3..6afd72e14760c471d771e465155086ec66dc2e4e 100644 (file)
--- a/index.php
+++ b/index.php
@@ -19,10 +19,12 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 ***************************************************************************/
 
 require_once 'header.inc.php';
-$bookmarkservice =& ServiceFactory::getServiceInstance('BookmarkService');
-$templateservice =& ServiceFactory::getServiceInstance('TemplateService');
-$userservice     =& ServiceFactory::getServiceInstance('UserService');
-$cacheservice    =& ServiceFactory::getServiceInstance('CacheService');
+
+$sf = new ServiceFactory();
+$bookmarkservice =& $sf->getServiceInstance('BookmarkService');
+$templateservice =& $sf->getServiceInstance('TemplateService');
+$userservice     =& $sf->getServiceInstance('UserService');
+$cacheservice    =& $sf->getServiceInstance('CacheService');
 
 $tplvars = array();
 if (isset($_GET['action']) && 'logout' == $_GET['action']) {

Benjamin Mako Hill || Want to submit a patch?