Release diogenes-0.9.22
[diogenes.git] / plugins / HtmlHead.php
index 8e53ffa..a1be65c 100644 (file)
@@ -30,15 +30,9 @@ class HtmlHead extends Diogenes_Plugin_Filter
   
   /** Plugin description */
   var $description = "This plugin allows you to add entries to a page's <head> block.";
-
-  /** Constructor.
-   */
-  function HtmlHead()
-  {
-    $this->declareParam('contents', '');
-  }
-
+  
+  /** Plugin parameters */
+  var $params = array('contents' => '');
 
   /** Apply filtering to the input and return an output.
    *
@@ -47,10 +41,10 @@ class HtmlHead extends Diogenes_Plugin_Filter
   function filter($input)
   {
     global $page;
-    $contents = $this->getParamValue('content'); 
-    if (!empty($contents))
+   
+    if ($this->params['contents'])
     {
-      array_push($page->head, $contents);
+      array_push($page->head, $this->params['contents']);
     }
 
     return $input;