Getting rid of PHP Deprecated warnings.
[timetracker.git] / WEB-INF / lib / Period.class.php
index 1880cf1..c14f17d 100644 (file)
@@ -38,7 +38,7 @@ class Period {
        var $mBeginDate;
        var $mEndDate;
 
-       function Period($period_name=0, $date_point=null) {
+       function __construct($period_name=0, $date_point=null) {
                global $user;
                
                if (!$date_point || !($date_point instanceof DateAndTime)) {
@@ -145,4 +145,3 @@ class Period {
                return $result;
        }
 }
-?>
\ No newline at end of file