]> git.llucax.com Git - software/bife/bife-all.git/blobdiff - core/BIFE/Fallback.php
Core and Basic modules are now much more like they should. Huge code clean:
[software/bife/bife-all.git] / core / BIFE / Fallback.php
index e3098252b869e9c3a7527892b24f781151e941bf..04a11b1c5553f2c8966e1c921011ae1ad57af3e3 100644 (file)
@@ -39,10 +39,12 @@ require_once 'BIFE/Container.php';
  */
 class BIFE_Fallback extends BIFE_Container {
     /**
+     * Name of the widget.
+     *
      * @var    string $name
      * @access private
      */
-    var $name;
+    var $name = '';
 
     // ~X2C
 
@@ -75,7 +77,7 @@ class BIFE_Fallback extends BIFE_Container {
     function __construct($name, $attrs) // ~X2C
     {
         parent::__construct($attrs);
-        $this->name = $name;
+        $this->name = strtolower(strtr($name, ':', '_'));
     }
     // -X2C