Skip to content

Commit

Permalink
Don't try to compare ORM instances; compare their ids instead.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
bharat committed Sep 3, 2010
1 parent 511826a commit 077cf53
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions themes/wind/views/page.html.php
Expand Up @@ -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>
Expand Down

0 comments on commit 077cf53

Please sign in to comment.