Changeset 2470

Show
Ignore:
Timestamp:
04/11/08 13:29:41 (3 months ago)
Author:
PugFish
Message:

Applying patch from #542, thanks HarryR!

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/modules/forge/libraries/Form_Group.php

    r2022 r2470  
    1515        ( 
    1616                'type'  => 'group', 
     17                'name'  => '', 
    1718                'class' => 'group', 
    1819                'label' => '', 
     
    2324        public $method; 
    2425 
    25         public function __construct($class = 'group') 
     26        public function __construct($name = NULL, $class = 'group') 
    2627        { 
     28                $this->data['name'] = $name; 
    2729                $this->data['class'] = $class; 
    2830 
     
    3436        public function __get($key) 
    3537        { 
    36                 if ($key == 'type'
     38                if ($key == 'type' || $key == 'name'
    3739                { 
    38                         return $this->data['type']; 
     40                        return $this->data[$key]; 
    3941                } 
    4042                return parent::__get($key);