Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I'm unable to add new photos to a created album.
I've found the error in the code, in "album_page" method the $user->uid variable it's used (line 141 on album.module) to see if the user has permission to add images, but $user object it's not initialized, so I added "global $user" before the if sentence and it just works.
Comment | File | Size | Author |
---|---|---|---|
#2 | album_3.module | 7.94 KB | deNuo |
Comments
Comment #1
dboomerang CreditAttribution: dboomerang commentedAdding
global $user;
Didnt work for me, maybe i added at the wrong place?
Can anyone advise?
Comment #2
deNuo CreditAttribution: deNuo commentedHere's the module file, updated to allow additional photos to already existent albums!