]> projects.mako.cc - scuttle/blobdiff - password.php
initial patch to cause scuttle to work with PHP 8.2
[scuttle] / password.php
index b7daa70ea2eea47b8a5e67c6fcdf3bee3f5bb0c0..b5592555bcd0864c2a03502c358c7ca5658b9ba2 100644 (file)
@@ -1,7 +1,7 @@
-<?
+<?php
 /***************************************************************************
-Copyright (C) 2005 Scuttle project
-https://sourceforge.net/projects/scuttle/
+Copyright (c) 2005 Marcus Campbell
+http://scuttle.org/
 
 This program is free software; you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
@@ -18,9 +18,10 @@ along with this program; if not, write to the Free Software
 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 ***************************************************************************/
 
-require_once('header.inc.php');
-$userservice =& ServiceFactory::getServiceInstance('UserService');
-$templateservice =& ServiceFactory::getServiceInstance('TemplateService');
+require_once 'header.inc.php';
+$sf = new ServiceFactory();
+$userservice     =& $sf->getServiceInstance('UserService');
+$templateservice =& $sf->getServiceInstance('TemplateService');
 $tplVars = array();
 
 // IF SUBMITTED

Benjamin Mako Hill || Want to submit a patch?