diff options
-rw-r--r-- | modules/tag/controllers/tags.php | 1 | ||||
-rw-r--r-- | themes/default/views/dynamic.html.php | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/modules/tag/controllers/tags.php b/modules/tag/controllers/tags.php index eeeb28d7..85f6d16e 100644 --- a/modules/tag/controllers/tags.php +++ b/modules/tag/controllers/tags.php @@ -37,6 +37,7 @@ class Tags_Controller extends REST_Controller { $template->set_global("children", $tag->items($page_size, $offset)); $template->set_global("children_count", $children_count); $template->content = new View("dynamic.html"); + $template->content->title = $tag->name; print $template; } diff --git a/themes/default/views/dynamic.html.php b/themes/default/views/dynamic.html.php index 12b5192c..2d122e69 100644 --- a/themes/default/views/dynamic.html.php +++ b/themes/default/views/dynamic.html.php @@ -3,7 +3,7 @@ <div id="gAlbumHeaderButtons"> <?= $theme->dynamic_top() ?> </div> - <h1><?= p::clean($tag->name) ?></h1> + <h1><?= p::clean($title) ?></h1> </div> <ul id="gAlbumGrid"> @@ -16,7 +16,7 @@ width="<?= $child->thumb_width ?>" height="<?= $child->thumb_height ?>" /> </a> - <h2><?= p::clean($child->title) ?></h2> + <h2><?= p::purify($child->title) ?></h2> <?= $theme->thumb_bottom($child) ?> <ul class="gMetadata"> <?= $theme->thumb_info($child) ?> |