Skip to content

Commit

Permalink
numeric index instead of string
Browse files Browse the repository at this point in the history
  • Loading branch information
uncovery committed Mar 25, 2016
1 parent 7786edd commit 55bfa3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion unc_display.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ function unc_display_image_html($file_path, $show_thumb, $file_data = false) {
$gal_text = '';
if ($UNC_GALLERY['image_view_method'] == 'photoswipe') {
$js_code = str_replace("-", "_", $D['date']);
$gal_text = "onClick=\"unc_g_photoswipe_$js_code('{$F['index']}'); return false;\"";
$gal_text = "onClick=\"unc_g_photoswipe_$js_code({$F['index']}); return false;\"";
} else if ($UNC_GALLERY['image_view_method'] == 'lightbox') {
$gal_text = "data-lightbox=\"gallery_{$F['file_name']}\"";
}
Expand Down

0 comments on commit 55bfa3e

Please sign in to comment.