constructors are named __construct for php8
[plewww.git] / plekit / php / tophat_api.php
index 50eb146..4e690c5 100644 (file)
@@ -6,7 +6,7 @@
 // TODO add tophat_api in the php default path in /etc/plc.d/httpd
 // TODO occurences to PLC
 
-define('TOPHAT_API_HOST', 'www.top-hat.info');
+define('TOPHAT_API_HOST', 'api.top-hat.info');
 define('TOPHAT_API_PATH', '/API/');
 define('TOPHAT_API_PORT', 443);
 
@@ -21,7 +21,7 @@ class TopHatAPI
   var $calls;
   var $multicall;
 
-  function TopHatAPI($auth = NULL,
+  function __construct($auth = NULL,
                  $server = TOPHAT_API_HOST,
                  $port = TOPHAT_API_PORT,
                  $path = TOPHAT_API_PATH,