]> projects.mako.cc - scuttle/blobdiff - services/userservice.php
initial patch to cause scuttle to work with PHP 8.2
[scuttle] / services / userservice.php
index dde67b5718dc2490b3be7a4de8adc20a1d682c96..a4fdbb7ed0dc1f024c5c4e7b6d2688f186bab1cb 100644 (file)
@@ -19,9 +19,9 @@ class UserService {
   var $tablename;
   var $sessionkey;
   var $cookiekey;
-  var $cookietime = 1209600; // 2 weeks
+  var $cookietime = 63072000; // 2 years
 
-    function UserService(&$db) {
+    function __construct(&$db) {
         $this->db =& $db;
         $this->tablename = $GLOBALS['tableprefix'] .'users';
         $this->sessionkey = $GLOBALS['cookieprefix'] .'-currentuserid';

Benjamin Mako Hill || Want to submit a patch?