constructors are named __construct for php8
[plewww.git] / plekit / php / table2.php
index 094c3f2..d3b6849 100644 (file)
@@ -61,7 +61,7 @@ class PlekitTable {
   // internal
   var $has_tfoot;
 
-  function PlekitTable ($table_id,$headers,$sort_column,$options=NULL) {
+  function __construct ($table_id,$headers,$sort_column,$options=NULL) {
     $this->table_id = $table_id;
     $this->headers = $headers;
     $this->sort_column = $sort_column;