]> git.llucax.com Git - mecon/meconlib.git/commitdiff
El contenido no se agrega mas como referencia.
authorLeandro Lucarella <llucax@gmail.com>
Thu, 28 Aug 2003 19:30:34 +0000 (19:30 +0000)
committerLeandro Lucarella <llucax@gmail.com>
Thu, 28 Aug 2003 19:30:34 +0000 (19:30 +0000)
lib/MECON/HTML/Link.php

index 75f5d35ab3237dd7e0e28cf218909d9cae6402ac..c33269a3bcb9f8727285e2d09c5e6c260f2c62ff 100644 (file)
@@ -226,13 +226,9 @@ If they doesn't exists, they are added, if they exists, they are updated.
      * @return void
      * @access public
      */
-    function addContents(&$contents) // ~X2C
+    function addContents($contents) // ~X2C
     {
-        if (is_object($contents)) {
-            $this->_contents[] =& $contents;
-        } else {
-            $this->_contents[] = $contents;
-        }
+        $this->_contents[] = $contents;
     }
     // -X2C
 
@@ -264,9 +260,10 @@ If they doesn't exists, they are added, if they exists, they are updated.
      */
     function setContents($contents) // ~X2C
     {
-        $this->_contents = $contents;
+        $this->_contents = array($contents);
     }
     // -X2C
 
 } // -X2C Class :MECON_HTML_Link
+
 ?>
\ No newline at end of file