There is no $g2_album_id here

I assume this should be $g2_album->getId() instead
valid::url() only takes 1 arg
How did this ever work? :)
Merge pull request #352 from rlerdorf/master

Fix a couple of small mistakes

Fixes #2066 and #2067