summaryrefslogtreecommitdiff
path: root/themes
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-09-12 23:22:12 -0700
committerTim Almdal <tnalmdal@shaw.ca>2009-09-12 23:22:12 -0700
commitdbeadfc2ab7e645a9e5a92e05cb5d90f4329480c (patch)
tree51013edda2048421b84fbe75de86db0f5b85d45c /themes
parent4a9bd312c3246733fa877236c11b3d1a9ebb4633 (diff)
parent711cdde5b9755140981000adc6dd7897d836ccc5 (diff)
Merge branch 'master' of git@github.com:gallery/gallery3 into talmdal_dev
Diffstat (limited to 'themes')
-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>