summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-09-12 21:11:40 -0700
committerBharat Mediratta <bharat@menalto.com>2009-09-12 21:11:40 -0700
commit2dacf6268674ba0fc76fe6bd19ae18cc47e1445e (patch)
tree6157248e429ac7cb1367e1ee01c589df34556206
parent51f6329a89be3382b7319b0add30283e9c9bce6a (diff)
parent711cdde5b9755140981000adc6dd7897d836ccc5 (diff)
Merge branch 'master' of git@github.com:gallery/gallery3 into beta3_staging
-rw-r--r--themes/default/views/page.html.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/themes/default/views/page.html.php b/themes/default/views/page.html.php
index 733534ea..19d8cc00 100644
--- a/themes/default/views/page.html.php
+++ b/themes/default/views/page.html.php
@@ -95,7 +95,12 @@
<ul class="gBreadcrumbs">
<? foreach ($parents as $parent): ?>
<li>
- <a href="<?= $parent->url("show={$theme->item()->id}") ?>">
+ <!-- Adding ?show=<id> causes Gallery3 to display the page
+ containing that photo. For now, we just do it for
+ the immediate parent so that when you go back up a
+ level you're on the right page. -->
+ <a href="<?= $parent->url($parent == $theme->item()->parent() ?
+ "show={$theme->item()->id}" : null) ?>">
<?= html::purify($parent->title) ?>
</a>
</li>