diff options
author | Bharat Mediratta <bharat@menalto.com> | 2010-09-02 22:03:16 -0700 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2010-09-02 22:03:16 -0700 |
commit | 077cf537142cc71ca822e35a055dc7e1d40b80b0 (patch) | |
tree | 6e12400044ca87e24ecad39ad47b1fde69012521 /themes/wind | |
parent | 511826a33cbbf03bf1e3cb151f1a181b8e6723e8 (diff) |
Don't try to compare ORM instances; compare their ids instead.
Follow on to the fix for #1318 that caused the show= param to get
dropped in the breadcrumbs. See http://gallery.menalto.com/node/97790
Diffstat (limited to 'themes/wind')
-rw-r--r-- | themes/wind/views/page.html.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/themes/wind/views/page.html.php b/themes/wind/views/page.html.php index 4938ed60..e620d652 100644 --- a/themes/wind/views/page.html.php +++ b/themes/wind/views/page.html.php @@ -105,9 +105,9 @@ // 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() ? + <a href="<?= $parent->url($parent->id == $theme->item()->parent_id ? "show={$theme->item()->id}" : null) ?>"> - <!-- limit the title length to something reasonable (defaults to 15) --> + <? // limit the title length to something reasonable (defaults to 15) ?> <?= html::purify(text::limit_chars($parent->title, module::get_var("gallery", "visible_title_length"))) ?> </a> |