aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlaurent.duretz <laurent.duretz@piwigo.org>2010-03-29 17:05:38 +0000
committerlaurent.duretz <laurent.duretz@piwigo.org>2010-03-29 17:05:38 +0000
commita37f1fbae1309c44531f36e0109b1f2bfecf2539 (patch)
treeb2c069cf144b4383abd3c539e5178cfbacb42715
parent6024107c9ceefcb45e0ab1f17d16f3472a2d5161 (diff)
Issue 1521 : picture.tpl updated to avoid double home link, picture.php updated because tpl update, functions_html.inc.php updated to work with question_mark_in_urls = false
git-svn-id: http://piwigo.org/svn/trunk@5451 68402e56-0260-453c-a942-63ccdbb3a9ee
-rw-r--r--include/functions_html.inc.php2
-rw-r--r--picture.php1
-rw-r--r--themes/default/template/picture.tpl3
3 files changed, 2 insertions, 4 deletions
diff --git a/include/functions_html.inc.php b/include/functions_html.inc.php
index 440d028c7..1cabb3acd 100644
--- a/include/functions_html.inc.php
+++ b/include/functions_html.inc.php
@@ -40,7 +40,7 @@ function get_cat_display_name($cat_informations,
{
global $conf;
- $output = '<a href="'.PHPWG_ROOT_PATH.$conf['home_page'].'">'.l10n('Home').'</a>';
+ $output = '<a href="'.get_absolute_root_url().$conf['home_page'].'">'.l10n('Home').'</a>';
foreach ($cat_informations as $cat)
{
diff --git a/picture.php b/picture.php
index 6c16c713d..8aa5e9ffb 100644
--- a/picture.php
+++ b/picture.php
@@ -740,7 +740,6 @@ $template->assign(
'LEVEL_SEPARATOR' => $conf['level_separator'],
- 'U_HOME' => make_index_url(),
'U_UP' => $url_up,
'DISPLAY_NAV_BUTTONS' => $conf['picture_navigation_icons'],
'DISPLAY_NAV_THUMB' => $conf['picture_navigation_thumb']
diff --git a/themes/default/template/picture.tpl b/themes/default/template/picture.tpl
index b1378132e..1676d2eaa 100644
--- a/themes/default/template/picture.tpl
+++ b/themes/default/template/picture.tpl
@@ -28,8 +28,7 @@
<div id="imageHeaderBar">
<div class="browsePath">
- <a href="{$U_HOME}" rel="Home">{'Home'|@translate}</a>
- {if !$IS_HOME}{$LEVEL_SEPARATOR}{$SECTION_TITLE}{/if}
+ {$SECTION_TITLE}
{$LEVEL_SEPARATOR}{$current.TITLE}
</div>
<div class="imageNumber">{$PHOTO}</div>