In function members_page, theme_user_picture($account) should be written as theme('user_picture', $account). The difference is that the second way allows theme overrides. I'm sorry I didn't make a patch (I got confused about which versions to use in cvs).
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | theme.patch | 713 bytes | jody lynn |
Comments
Comment #1
junyor commentedYou should make a patch against the DRUPAL-5 branch.
Comment #2
jody lynnPatch attached
Comment #3
junyor commentedPatch applies and works as it should.
Comment #4
psi-jack commentedAhh, good. This is correct. I spent the last few days tracking this down, because I use imagecache_profiles (based on lullabot's approach), then it suddenly hit me. theme_user_profile is the last stack of the checking phase for theming, and shouldn't be called directly, as per Drupal API docs say to use theme().
Patch works, and fixes the problem and corrects the API regarding this specific issue.