Skip to content

Commit

Permalink
Dropbox and Zotero fix for minor typos
Browse files Browse the repository at this point in the history
  • Loading branch information
anzeljg committed Dec 22, 2012
1 parent c112160 commit 6007154
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion cloud/blocktype/dropbox/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,8 @@ public function request_token() {
if ($result->info['http_code'] == 200 && !empty($result->data)) {
// Store request_token (oauth_token) and request_token_secret (outh_token_secret)
// We'll need it later...
$prefs = oauth_parse_str(substr($result->data, $result->info['header_size']));
$body = substr($result->data, $result->info['header_size']);
$prefs = oauth_parse_str($body);
ArtefactTypeCloud::set_user_preferences('dropbox', $USER->get('id'), $prefs);
redirect($cloud['wwwurl'].$cloud['version'].'/oauth/authorize?'.rfc3986_decode($body).'&oauth_callback='.$consumer['callback']);
} else {
Expand Down
2 changes: 1 addition & 1 deletion cloud/blocktype/zotero/lang/en.utf8/blocktype.zotero.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
$string['applicationdesc'] = 'You must create %san application%s, if you wish to access and use Zotero API.';
$string['applicationname'] = 'Application name';
$string['applicationnamedesc'] = 'You must provide unique application name, e.g. the name of this site.';
$string['applicationtype'] = 'Application Type';
$string['applicationtype'] = 'Application type';
$string['applicationtypedesc'] = 'Please select \'Browser\' application type, when creating a new application.';
$string['consumerkey'] = 'Client key';
$string['consumerkeydesc'] = 'When you\'ll create an application, you\'ll get a Client key. Paste it here.';
Expand Down

0 comments on commit 6007154

Please sign in to comment.