aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--start.php3
-rw-r--r--views/default/js/photos/uploading.php3
2 files changed, 5 insertions, 1 deletions
diff --git a/start.php b/start.php
index e98e19261..2ef7dcb4c 100644
--- a/start.php
+++ b/start.php
@@ -78,7 +78,8 @@ function tidypics_init() {
elgg_register_plugin_hook_handler('notify:entity:message', 'object', 'tidypics_notify_message');
// ajax handler for uploads when use_only_cookies is set
- elgg_register_plugin_hook_handler('forward', 'csrf', 'tidypics_ajax_session_handler');
+ // using the all forward hook to work with walled gardens.
+ elgg_register_plugin_hook_handler('forward', 'all', 'tidypics_ajax_session_handler');
/*
// Register for notifications
diff --git a/views/default/js/photos/uploading.php b/views/default/js/photos/uploading.php
index cb79dc77c..ae66226b0 100644
--- a/views/default/js/photos/uploading.php
+++ b/views/default/js/photos/uploading.php
@@ -78,6 +78,9 @@ elgg.tidypics.uploading.init = function() {
if (data.fileCount == 0) {
$("#tidypics-upload-button").addClass('tidypics-disable');
}
+ },
+ 'onError' : function (event, ID, fileObj, errorObj) {
+ // @todo do something useful with the limited information in the errorObj.
}
});