summaryrefslogtreecommitdiff
path: root/modules/organize/controllers
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2010-06-18 20:43:14 -0700
committerBharat Mediratta <bharat@menalto.com>2010-06-18 20:43:14 -0700
commit9b788674275c843947d44934a50dd395b515737a (patch)
tree28cf8c7e81935a3dfc311a5e1bdc916fa3471943 /modules/organize/controllers
parent295a42e0f1d5bf5ba1a6a11fe7e222da59dae40b (diff)
Simplify rest::get_access_key($user) to rest::access_key() that
returns just the access key string for the active user. That's how we use the API, so keep it simple.
Diffstat (limited to 'modules/organize/controllers')
-rw-r--r--modules/organize/controllers/organize.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/organize/controllers/organize.php b/modules/organize/controllers/organize.php
index 732ac3f6..135a6fc9 100644
--- a/modules/organize/controllers/organize.php
+++ b/modules/organize/controllers/organize.php
@@ -39,7 +39,7 @@ class Organize_Controller extends Controller {
$v = new View("organize_dialog.html");
$v->album = $album;
$v->domain = $input->server("SERVER_NAME");
- $v->access_key = rest::get_access_key($user->id)->access_key;
+ $v->access_key = rest::access_key();
$v->file_filter = addslashes($file_filter);
$v->sort_order = addslashes(json_encode($sort_order));
$v->sort_fields = addslashes(json_encode($sort_fields));