]> wagnertech.de Git - timetracker.git/blobdiff - plugins/CustomFields.class.php
Fix the last deprecation notices on class names for PHP 7+ (#26)
[timetracker.git] / plugins / CustomFields.class.php
index 1c2483a1e64af8f5b8abd17d9392fe5978d165a0..ddd1c4d152e00a1a35c0aecfab267f6a2feea2e5 100644 (file)
@@ -4,6 +4,27 @@
 // +----------------------------------------------------------------------+
 // | Copyright (c) Anuko International Ltd. (https://www.anuko.com)
 // +----------------------------------------------------------------------+
+// | LIBERAL FREEWARE LICENSE: This source code document may be used
+// | by anyone for any purpose, and freely redistributed alone or in
+// | combination with other software, provided that the license is obeyed.
+// |
+// | There are only two ways to violate the license:
+// |
+// | 1. To redistribute this code in source form, with the copyright
+// |    notice or license removed or altered. (Distributing in compiled
+// |    forms without embedded copyright notices is permitted).
+// |
+// | 2. To redistribute modified versions of this code in *any* form
+// |    that bears insufficient indications that the modifications are
+// |    not the work of the original author(s).
+// |
+// | This license applies to this document only, not any other software
+// | that it may be combined with.
+// |
+// +----------------------------------------------------------------------+
+// | Contributors:
+// | https://www.anuko.com/time_tracker/credits.htm
+// +----------------------------------------------------------------------+
 
 class CustomFields {
 
@@ -16,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.