Not a bug Improper Title Case

Floren

Well-known member
If you set the Title Case option in XenForo options, words containing the "-" character are malformed.
If I'm not mistaken, all title sentences containing a - should be formatted Upper case.

Example: Off-Topic, not Off-topic.
 
The title case option is just an option that sets the first character in each word to upper case (using ucwords). There isn't any intention to go to any further detail.
 
That should do it @Mike:
Code:
$ php -r 'var_dump(mb_convert_case("off-topic TITLE", MB_CASE_TITLE, "UTF-8"));'
string(9) "Off-Topic Title"

Thanks for implementing this.
 
Top Bottom