... | ... |
@@ -34,11 +34,11 @@ if ! which convert > /dev/null; then |
34 | 34 |
fi |
35 | 35 |
|
36 | 36 |
for ((g=0; g<${#galerie[@]}; g++)); do |
37 |
- sqlcmd="select concat('file=', path, ';rotation=', rotation * 90) from piwigo_images \ |
|
37 |
+ sqlcmd="select concat('file=', path, ';rotation=', rotation * 90) from ${dbprefix}images \ |
|
38 | 38 |
where id in ( \ |
39 |
- select image_id from piwigo_image_category \ |
|
39 |
+ select image_id from ${dbprefix}image_category \ |
|
40 | 40 |
where category_id in ( \ |
41 |
- select id from piwigo_categories where name = '${galerie[$g]}' \ |
|
41 |
+ select id from ${dbprefix}categories where name = '${galerie[$g]}' \ |
|
42 | 42 |
) \ |
43 | 43 |
)" |
44 | 44 |
|