summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2010-07-10 08:34:08 -0700
committerBharat Mediratta <bharat@menalto.com>2010-07-10 08:34:08 -0700
commit4c77f9ebdeb3796b4bb20282d414df8c879d25d7 (patch)
treed209942b25bf17e81a88e277b28b0dcf5c9d7cd5
parent39962eaddc17f27eb1baa694ac588138439621d4 (diff)
When limiting the length of album titles, purify after truncating so
that the truncation happens on entity boundaries. Fixes ticket #1184.
-rw-r--r--themes/wind/views/page.html.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/themes/wind/views/page.html.php b/themes/wind/views/page.html.php
index 16e43c63..fd1b3973 100644
--- a/themes/wind/views/page.html.php
+++ b/themes/wind/views/page.html.php
@@ -107,13 +107,13 @@
level you're on the right page. -->
<a href="<?= $parent->url($parent == $theme->item()->parent() ?
"show={$theme->item()->id}" : null) ?>">
- <?= text::limit_chars(html::purify($parent->title), 15) ?>
+ <?= html::purify(text::limit_chars($parent->title, 15)) ?>
</a>
</li>
<? $i++ ?>
<? endforeach ?>
<li class="g-active<? if ($i == 0) print " g-first" ?>">
- <?= text::limit_chars(html::purify($theme->item()->title), 15) ?>
+ <?= html::purify(text::limit_chars($theme->item()->title, 15)) ?>
</li>
</ul>
<? endif ?>