If you change the display name from a node type the Submitted by still shows the system name. Also, if you use system names with an underscore (project_issue), the name displayed is shown as Project_issue instead of Project Issue (or just Issue if you changed the label).

Patch follows to use <?php node_type_get_type(); ?> to display the system name.

Comments

BarisW’s picture

Status: Active » Needs review
StatusFileSize
new775 bytes

You can see it in action on the default homepage in the activity stream:

My nice node type label created by Username on Thu, 05/23/2013 - 12:42

devin carlson’s picture

The patch in #1 looks and works great! It looks like the administrator-submitted node type name isn't sanitized anywhere and should be run through check_plain().

BarisW’s picture

Ah mu fault, you are right. Thanks for fixing it.
Someone else wanting to review? It's a simple fix, so I'd be tempted to change it to RTBC myself, but I wont ;)

devin carlson’s picture

Status: Needs review » Reviewed & tested by the community

It's a pretty straightforward fix. :)

devin carlson’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.