From 59b6cd30e621ffeba55f23012e3ede42a4905e78 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Tue, 30 Mar 2010 13:53:14 -0700 Subject: Rename "user_access_tokens" table to "user_access_keys" as step 1 of a multi step process to refer to REST access keys as "access_key" everywhere. Bump the rest module to version 2. --- modules/rest/helpers/rest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/rest/helpers/rest.php') diff --git a/modules/rest/helpers/rest.php b/modules/rest/helpers/rest.php index 7440350f..e87ee91c 100644 --- a/modules/rest/helpers/rest.php +++ b/modules/rest/helpers/rest.php @@ -42,7 +42,7 @@ class rest_Core { throw new Rest_Exception("Forbidden", 403); } - $key = ORM::factory("user_access_token") + $key = ORM::factory("user_access_key") ->where("access_key", "=", $access_token) ->find(); @@ -59,7 +59,7 @@ class rest_Core { } static function get_access_token($user_id) { - $key = ORM::factory("user_access_token") + $key = ORM::factory("user_access_key") ->where("user_id", "=", $user_id) ->find(); -- cgit v1.2.3