samtiria / nextgen-gallery

Automatically exported from code.google.com/p/nextgen-gallery
0 stars 0 forks source link

Allow album ID to be specified in the URL #456

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Alex, 
Could you change line #71 in admin\album.php
from

$this->currentID = isset($_POST['act_album']) ? (int) $_POST['act_album'] : 0 ;

to

$this->currentID = isset($_REQUEST['act_album']) ? (int) $_REQUEST['act_album'] 
: 0 ;

This would allow the album ID to be specified in the URL, for example: 
/wp-admin/admin.php?page=nggallery-manage-album&act_album=2

This way I would be able to open the management page for a particular album 
from my Lightroom plugin. Thanks!

Original issue reported on code.google.com by v...@alloyphoto.com on 7 Jan 2012 at 5:30

GoogleCodeExporter commented 8 years ago
No prob, fixed in r1057

Original comment by alex.cologne on 7 Jan 2012 at 2:29