samtiria / nextgen-gallery

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

Multiple gallery sharing folder. #433

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create a Gallery and add some photos
2. Copy the gallery path
3. Create a new Gallery, put that path and try to scan the folder.

What is the expected output? 

Photos added to the gallery.

What do you see instead?

No changes.

Actually you can fix it replacing in admin/functions.php:169:

$gallery_id = $wpdb->get_var("SELECT gid FROM $wpdb->nggallery WHERE path = 
'$galleryfolder' ");

For :

$gallery_id = $_GET["gid"];

I haven't found any issues because of it.

Original issue reported on code.google.com by Polcm...@gmail.com on 26 Oct 2011 at 7:52