Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
user.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
9 Feb 2009 at 04:34 UTC
Updated:
3 Jan 2014 at 00:07 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
webchickConfirmed this functionality is not working in HEAD right now, and adding the patch fixes it.
However, we should fix that test that is erroneously passing while we're at it.
Comment #2
quicksketchAh! Yes the test was not functioning correctly. We need to actually switch to the user's profile page before checking for the image. So now we're fixing the test and the actual page. :)
Fixes a few code comments also.
Comment #3
quicksketchSorry this patch had some accidental code slip in. New patch coming up shortly.
Comment #4
quicksketchThis patch has higher accuracy for checking for the user profile picture, though it needs some rather funky code to properly check for the output of theme('user_picture'). Not so sure this is a "No brainer" any more. Silly tests.
Comment #5
quicksketchSpacing fixes.
Comment #6
quicksketchOkay... another shot at this. This time omit one of the user profile picture checks entirely, since we were checking for the exact same thing twice. Instead of checking for the whole image we're now checking just for the ALT tag.
Comment #7
webchickSorry, checking for 'alt' isn't sufficient. We need to check for the image path as well.
Just add that extra assertion and I'm fine committing this.
Comment #8
quicksketchI'm feeling like #5 was probably the best approach at this, but here's an alternative: don't use the silly l() function. The l() function is adding in the "active" class that's futzing up our comparison. We can remove it and hand-type the link to avoid the differences. This patch is more accurate than checking for the src or alt tags alone, since it actually renders the entire tag rather than checking for strings which might (though unlikely) show up elsewhere on the page.
Comment #9
quicksketchSigh. Okay here's the "short version". It works but will break when I introduce the imagecache patch. We'll fix it again then.
Comment #10
quicksketchOops, still some cruft in there from the last patch.
Comment #11
webchickCommitted #10 to HEAD + a small comment fix. Thank you!!! :)
Comment #12
quicksketchThanks webchick, you're a star.
Comment #13
drewish commentedsubscribing. it looks good to me but i'm tired.
Comment #14
dave reidCross posted? Should we backport to 6.x?
Comment #15
webchickNo, #markup was added in D7. So D6 should be good.