constructors are named __construct for php8
[plewww.git] / plekit / php / toggle.php
index b481195..014be9e 100644 (file)
@@ -37,7 +37,7 @@ class PlekitToggle {
   var $id;
   var $nifty;
 
-  function PlekitToggle ($id,$trigger,$options=NULL) {
+  function __construct ($id,$trigger,$options=NULL) {
     $this->id = $id;
     $this->trigger=$trigger;
     if ( ! $options ) $options = array();