summaryrefslogtreecommitdiff
path: root/modules/organize/controllers
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2010-06-13 17:58:50 -0700
committerTim Almdal <tnalmdal@shaw.ca>2010-06-13 17:58:50 -0700
commit47aa65143060ff376d95ca182c55132d821917fb (patch)
tree9ebd2c5c673ef803f5e9452235bc2eb723ff3681 /modules/organize/controllers
parent938eea7fc45d5ad26529a14f349b7e4be2fecb15 (diff)
Fix problems ith IE and flex initialization when one of the flashvars contains a json encoded string. Also address the problem that IE returns the color values differently that Firefox and Chrome
Diffstat (limited to 'modules/organize/controllers')
-rw-r--r--modules/organize/controllers/organize.php11
1 files changed, 6 insertions, 5 deletions
diff --git a/modules/organize/controllers/organize.php b/modules/organize/controllers/organize.php
index d2c273b6..b5a25400 100644
--- a/modules/organize/controllers/organize.php
+++ b/modules/organize/controllers/organize.php
@@ -28,23 +28,24 @@ class Organize_Controller extends Controller {
$v = new View("organize_dialog.html");
$v->album = $album;
// @todo turn this into an api call.
- $v->file_filter = json_encode(
+ $v->file_filter = addslashes(json_encode(
array("photo" => array("label" => "Images",
"types" => array("*.jpg", "*.jpeg", "*.png", "*.gif")),
- "movie" => array("label" => "Movies", "types" => array("*.flv", "*.mp4"))));
+ "movie" => array("label" => "Movies", "types" => array("*.flv", "*.mp4")))));
$v->domain = $input->server("SERVER_NAME");
// @todo figure out how to connect this w/o a dependency
$v->base_url = url::abs_site("rest") . "/";
- $v->sort_order = json_encode(array("ASC" => (string)t("Ascending"), "DESC" => (string)t("Descending")));
+ $v->sort_order = addslashes(json_encode(array("ASC" => (string)t("Ascending"), "DESC" => (string)t("Descending"))));
$sort_fields = array();
foreach (album::get_sort_order_options() as $field => $description) {
$sort_fields[$field] = (string)$description;
}
- $v->sort_fields = json_encode($sort_fields);
+ $v->sort_fields = addslashes(json_encode($sort_fields));
$user = identity::active_user();
- $v->api_key = rest::get_access_key($user->id)->access_key;
+ $v->access_key = rest::get_access_key($user->id)->access_key;
+ Kohana_Log::add("error", $v->__toString());
print $v;
}