On 12/31/05, Magnus Manske <magnus.manske(a)web.de> wrote:
Ævar Arnfjörð Bjarmason wrote:
What's the point of allowing user agents to
specify a user ID to limit
to?
The point is to have a "my pictures" link to click on in the
sidebar,
similar to "my contributions"; also, possible, "list images uploaded by
userXYZ". I didn't get around to the interface part yet.
This should use ->getText() and
User::newFromName() instead.
Why?
Because it doesn't make sense to make users specify a user ID for a
user to show uploads for, we specify things by username everywhere
else (e.g. Special:Contributions/Ævar not
Special:Contributions/123234). If you made the user specify a username
instead of an idea you'd use that.
and wfMsg()
instead of wfMsgForContent().
OK. It seems to work both ways. As this is open source, and you were
looking at it anyway, you just fixed it, right?
No, I wanted to check with you why you did it because it seemed quite strange.