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.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | commons_origins-2001634-2-node-type-name.patch | 788 bytes | devin carlson |
| #1 | commons_origins-2001634-1-node-type-name.patch | 775 bytes | BarisW |
Comments
Comment #1
BarisW commentedYou can see it in action on the default homepage in the activity stream:
Comment #2
devin carlson commentedThe 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().Comment #3
BarisW commentedAh 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 ;)
Comment #4
devin carlson commentedIt's a pretty straightforward fix. :)
Comment #5
devin carlson commentedCommitted to Commons Origins 7.x-3.x.
http://drupalcode.org/project/commons_origins.git/commit/fe75127