Skip to content

Commit

Permalink
Merge pull request #24 from Kajakaran/tweaks
Browse files Browse the repository at this point in the history
improvements
  • Loading branch information
deepak-srivastava committed Apr 22, 2016
2 parents e93d179 + 8c1224e commit 20f7ada
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
7 changes: 4 additions & 3 deletions CRM/Gotowebinar/Form/Setting.php
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,9 @@ function requestPost($url){

$output = curl_exec($session);
$header = curl_getinfo( $session );

return json_decode($output, TRUE);
$response = json_decode($output, TRUE);
CRM_Core_Error::debug_var('Connection response', $response);
return $response;
} // END function request

static function findUpcomingWebinars() {
Expand All @@ -185,7 +186,7 @@ static function findUpcomingWebinars() {
curl_setopt_array( $session, $options );
$output = curl_exec($session);
$header = curl_getinfo( $session );
$response = json_decode($output, TRUE, 1024, JSON_BIGINT_AS_STRING);
$response = json_decode(preg_replace('/("\w+"):(-?\d+(.\d+)?)/', '\1:"\2"', $output), true);
return $response;
}
}
4 changes: 2 additions & 2 deletions info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
<author>Veda Consulting</author>
<email>[email protected]</email>
</maintainer>
<releaseDate>2015-11-17</releaseDate>
<version>1.6</version>
<releaseDate>2016-04-22</releaseDate>
<version>1.6.1</version>
<develStage>stable</develStage>
<compatibility>
<ver>4.5</ver>
Expand Down
2 changes: 1 addition & 1 deletion xml/Menu/Gotowebinar.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
<path>civicrm/gotowebinar/settings</path>
<page_callback>CRM_Gotowebinar_Form_Setting</page_callback>
<title>Gotowebinar Settings</title>
<access_arguments>administer CiviCRM</access_arguments>
<access_arguments>access CiviEvent</access_arguments>
</item>
</menu>

0 comments on commit 20f7ada

Please sign in to comment.