bugfix: the slice page was broken when nobody is in slice
[plewww.git] / plekit / php / nifty.php
index e871544..6820065 100644 (file)
@@ -7,7 +7,7 @@ require_once 'prototype.php';
 drupal_set_html_head('
 <script type="text/javascript" src="/plekit/niftycorner/niftycube.js"></script>
 <script type="text/javascript" src="/plekit/niftycorner/nifty_init.js"></script>
-<script> Event.observe(window,"load", nifty_init); </script>
+<script type="text/javascript"> Event.observe(window,"load", nifty_init); </script>
 ');
 
 class PlekitNifty {
@@ -15,10 +15,10 @@ class PlekitNifty {
   var $class;
   var $size;
 
-  function PlekitNifty ($id,$class,$size='medium') {
+  function __construct ($id, $class, $size='medium') {
     $this->id = $id;
-    $this->class=$class;
-    $this->size=$size;
+    $this->class = $class;
+    $this->size = $size;
   }
 
   function start () { print $this->start_html(); }
@@ -34,7 +34,7 @@ class PlekitNifty {
     return $html;
   }
 
-  function end () { print $this->end_html();} 
+  function end () { print $this->end_html();}
   function end_html () {
     return "</div>";
   }