summaryrefslogtreecommitdiff
path: root/modules/organize/controllers
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2012-05-05 19:38:31 -0700
committerBharat Mediratta <bharat@menalto.com>2012-05-05 19:38:31 -0700
commit581d9a58db6a18a2597ee5487e57716f367c884b (patch)
treed16e1bbcbc1f7bec1dd188ca77af180f0768657e /modules/organize/controllers
parent1a328271e13e886f47debf32ab184c060cce4fac (diff)
Clean up title handling code in organize and wind theme for consistency.
Fixes #1847.
Diffstat (limited to 'modules/organize/controllers')
-rw-r--r--modules/organize/controllers/organize.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/organize/controllers/organize.php b/modules/organize/controllers/organize.php
index 048f6fc3..3f04e56d 100644
--- a/modules/organize/controllers/organize.php
+++ b/modules/organize/controllers/organize.php
@@ -56,7 +56,7 @@ class Organize_Controller extends Controller {
"sort_column" => $album->sort_column,
"sort_order" => $album->sort_order,
"editable" => access::can("edit", $album),
- "title" => $album->title,
+ "title" => (string)html::clean($album->title),
"children" => array());
foreach ($album->viewable()->children() as $child) {
@@ -67,8 +67,9 @@ class Organize_Controller extends Controller {
"width" => $dims[1],
"height" => $dims[0],
"type" => $child->type,
- "title" => $child->title);
+ "title" => (string)html::clean($child->title));
}
+ Kohana_Log::add("error","".print_r($data,1));
json::reply($data);
}