small issue with lock_author_names

Wolfgang Barth wob at swobspace.de
Thu Dec 27 11:07:50 CET 2007


On Wed, Dec 26, 2007 at 06:38:39PM -0800, local.coder wrote:
> The username comes from two different places on that web page.
> For the top header it's a simple read of the string from the authdata. 
...
> in cmd.c Author for the form portion is set through a multi-step process.
...
> And comment_author is set earlier in the c file by.
>    /* get name to use for author */
>         if(lock_author_names==TRUE){
>                 temp_contact=find_contact(current_authdata.username);
>                 if(temp_contact!=NULL && temp_contact->alias!=NULL)
>                         comment_author=temp_contact->alias;
>                 else
>                         comment_author=current_authdata.username;
>                 }

Okay, that's the point. The authors name comes from contact->alias, may be
this is what Ethan intends. The manpage configcgi.html#lock_author_names
is not really clear and should mention that the alias and not the contact
name is used there.

What is about the following:

lock_author_names=1 -> contact->alias
lock_author_names=2 -> contact->name

Wolfgang
-- 
<wob (at) swobspace de> * http://www.swobspace.de

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/




More information about the Developers mailing list