]> wagnertech.de Git - timetracker.git/commitdiff
Fix the last deprecation notices on class names for PHP 7+ (#26)
authorAndréas Lundgren <Adevade@users.noreply.github.com>
Mon, 24 Oct 2016 10:53:58 +0000 (12:53 +0200)
committeranuko <support@anuko.com>
Mon, 24 Oct 2016 10:53:58 +0000 (10:53 +0000)
* Modified classes: ttSysConfig, ttUser and CustomFields plugin

WEB-INF/lib/ttSysConfig.class.php
WEB-INF/lib/ttUser.class.php
plugins/CustomFields.class.php

index 56100b855f6ae965a723c8b2255915830f3eedd0..cb7637d15303926d2a94c46bb64b5e78e07ac2c3 100644 (file)
@@ -39,7 +39,7 @@ class ttSysConfig {
   var $mdb2 = null;
 
   // Constructor.
-  function ttSysConfig($u_id) {
+  function __construct($u_id) {
     $this->u_id = $u_id;
     $this->mdb2 = getConnection();
   }
index 3f26962c6c8594d9ee342df30792e00266116342..6b6a44a23726875c124ad938ce5cdd7f35e87423 100644 (file)
@@ -54,7 +54,7 @@ class ttUser {
   var $rights = 0;              // A mask of user rights.
 
   // Constructor.
-  function ttUser($login, $id = null) {
+  function __construct($login, $id = null) {
     if (!$login && !$id) {
       // nothing to initialize
       return;
index e1b42b80fb293c60669058b7846dcf8871790598..ddd1c4d152e00a1a35c0aecfab267f6a2feea2e5 100644 (file)
@@ -37,7 +37,7 @@ class CustomFields {
   var $options = array(); // Array of options for a dropdown custom field.
   
   // Constructor.
-  function CustomFields($team_id) {
+  function __construct($team_id) {
        $mdb2 = getConnection();
        
        // Get fields.