Show
Ignore:
Timestamp:
12/07/2007 12:46:30 PM (13 months ago)
Author:
zombor
Message:

Humanize auto-generated labels better.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/modules/forge/libraries/Form_Input.php

    r1441 r1442  
    9999                else 
    100100                { 
    101                         $this->label = ($val === TRUE) ? ucfirst($this->name) : $val; 
     101                        $this->label = ($val === TRUE) ? ucwords(str_replace('_', ' ', $this->name)) : $val; 
    102102                        return $this; 
    103103                }