Function theme_user referenced in node.tpl.php does not exist

drq - June 30, 2009 - 10:13
Project:Drupal
Version:6.x-dev
Component:documentation
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Issue tags:Quick fix
Description

Line 18 in the modules/node/node.tpl.php file.
* - $name: Themed username of node author output from theme_user().
Function theme_user() not exists. theme_username() must be here.

#1

jhodgdon - June 30, 2009 - 14:39
Title:Mistake in the system documentation» Function theme_user referenced in node.tpl.php does not exist
Project:Documentation» Drupal
Version:<none>» 7.x-dev
Component:Correction/Clarification» documentation

Problems in the API documentation belong in the Drupal project. Moving to correct queue and adding a more descriptive title.

This is a problem in 7.x as well as 6.x.
http://api.drupal.org/api/file/modules/node/node.tpl.php/7

#2

axyjo - June 30, 2009 - 15:08

Here's a patch for D7

AttachmentSizeStatusTest resultOperations
drupal_docs-506096-2-axyjo.patch968 bytesIdlePassed: 11826 passes, 0 fails, 0 exceptionsView details

#3

axyjo - June 30, 2009 - 15:08
Status:active» needs review

#4

jhodgdon - June 30, 2009 - 16:24
Status:needs review» reviewed & tested by the community

Looks good to me.

If committed, needs to be patched in D6 as well.

#5

axyjo - June 30, 2009 - 16:57

Yup, I can backport it once committed.

#6

webchick - June 30, 2009 - 17:18
Version:7.x-dev» 6.x-dev

Great, thanks! Committed to HEAD.

Moving down to 6.x.

#7

jhodgdon - June 30, 2009 - 17:37
Status:reviewed & tested by the community» patch (to be ported)

#8

axyjo - June 30, 2009 - 18:56

Ported to DRUPAL-6

AttachmentSizeStatusTest resultOperations
drupal_docs-506096-8-axyjo-D6.patch843 bytesIgnoredNoneNone

#9

axyjo - June 30, 2009 - 18:57
Status:patch (to be ported)» needs review

Forgot again.

#10

webchick - June 30, 2009 - 18:59
Status:needs review» reviewed & tested by the community

Same typo fix. RTBC.

#11

drq - July 1, 2009 - 09:13

Don't mention it.

I translated a few topics of API into Russian and found this miastake.

#12

Gábor Hojtsy - August 10, 2009 - 10:48
Status:reviewed & tested by the community» fixed

Thanks, committed to Drupal 6 too.

#13

System Message - August 24, 2009 - 10:50
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.