summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-07-04 09:00:11 -0700
committerTim Almdal <tnalmdal@shaw.ca>2009-07-04 09:00:11 -0700
commit7a9a4b9e8b4ca1a99b7668b1e212ec9a41687929 (patch)
tree085297686f8ef4b3de321e1a6d60477791019d3d
parentd6648c0affd122407b7567442aa924e9138104e7 (diff)
Found another place that p:purify was required.
Generalize the dynamic.html so it doesn't require a tag element
-rw-r--r--modules/tag/controllers/tags.php1
-rw-r--r--themes/default/views/dynamic.html.php4
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) ?>