Skip to content

Commit

Permalink
no dashes
Browse files Browse the repository at this point in the history
  • Loading branch information
uncovery committed Mar 25, 2016
1 parent 172a640 commit d0c8005
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 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') {
global $post;
$slug = $post->post_name;
$slug = str_replace("-", "_", $post->post_name);
$gal_text = "onClick=\"unc_g_photoswipe_$slug({$F['index']}); return false;\"";
} else if ($UNC_GALLERY['image_view_method'] == 'lightbox') {
$gal_text = "data-lightbox=\"gallery_{$F['file_name']}\"";
Expand All @@ -347,7 +347,7 @@ function unc_display_image_html($file_path, $show_thumb, $file_data = false) {

function unc_display_photoswipe_js($files) {
global $post;
$slug = $post->post_name;
$slug = str_replace("-", "_", $post->post_name);
$out = '
<script type="text/javascript">
function unc_g_photoswipe_' . $slug . '(index) {
Expand Down

0 comments on commit d0c8005

Please sign in to comment.