Closed (fixed)
Project:
Printer, email and PDF versions
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
9 Sep 2009 at 16:50 UTC
Updated:
17 Oct 2009 at 15:30 UTC
Jump to comment: Most recent file
Comments
Comment #1
jcnventuraWhy are you calling the theme function twice?
Comment #2
aether commentedNow only called one time.
Comment #3
jcnventuraThe default implementation of theme_username() doesn't accept the plain argument and it returns the HTML pointing to the user page. Since the instances where this string is used require simple text, this patch is unacceptable.
Comment #4
aether commentedAh, right you are. My implementation was specifically related to the RealName module which provides this argument via override. Would strip_tags offer an acceptable workaround as it is used in this patch or is it bad practice to wrap a theme function like this?
Not sure if the check_plain is needed here and will remove it if it is unnecessary in your opinion and the patch is otherwise acceptable.
Comment #5
jcnventuraCommited to CVS. Thanks for the patch!