From 49da4accc8532bdb195f11f22164eaf97cc21652 Mon Sep 17 00:00:00 2001 From: rvelices Date: Sun, 30 Jun 2013 05:57:49 +0000 Subject: on picture page add TITLE_ESC variable for every thumb to avoid escaping TITLE more than 40 times in the template... git-svn-id: http://piwigo.org/svn/trunk@23689 68402e56-0260-453c-a942-63ccdbb3a9ee --- picture.php | 1 + themes/default/template/picture.tpl | 8 ++++---- themes/default/template/picture_content.tpl | 6 +++--- themes/default/template/picture_nav_buttons.tpl | 4 ++-- 4 files changed, 10 insertions(+), 9 deletions(-) diff --git a/picture.php b/picture.php index 6b4bf0773..e736373ba 100644 --- a/picture.php +++ b/picture.php @@ -541,6 +541,7 @@ while ($row = pwg_db_fetch_assoc($result)) $picture[$i] = $row; $picture[$i]['TITLE'] = render_element_name($row); + $picture[$i]['TITLE_ESC'] = str_replace('"', '"', $picture[$i]['TITLE']); if ('previous'==$i and $page['previous_item']==$page['first_item']) { diff --git a/themes/default/template/picture.tpl b/themes/default/template/picture.tpl index 8d94438cd..f41b573e3 100644 --- a/themes/default/template/picture.tpl +++ b/themes/default/template/picture.tpl @@ -128,9 +128,9 @@ y.callService( {if $DISPLAY_NAV_THUMB}