Skip to content

Commit

Permalink
Merge pull request #36 from RusticiSoftware/v2.0.8
Browse files Browse the repository at this point in the history
v2.0.8
  • Loading branch information
nolmac authored Mar 8, 2023
2 parents cae4ca8 + e2ca7ae commit d672e5c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions scormcloud/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ The SCORM Cloud For WordPress basic functionality works with BuddyPress without


== Changelog ==
= 2.0.8 =
Fixes an issue determining whether an account has a strict registration limit

= 2.0.7 =
Fixes an issue loading the training details page

Expand Down
2 changes: 1 addition & 1 deletion scormcloud/scormcloud.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Plugin URI: http://scorm.com/wordpress
Description: Tap the power of SCORM to deliver and track training right from your WordPress-powered site. Just add the SCORM Cloud widget to the sidebar or use the SCORM Cloud button to add a link directly in a post or page.
Author: Rustici Software
Version: 2.0.7
Version: 2.0.8
Author URI: http://www.scorm.com
*/

Expand Down
4 changes: 2 additions & 2 deletions scormcloud/scormcloudplugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public static function get_cloud_service( $force_network_settings = false ) {
$proxy = get_option( 'proxy' );
}

$origin = ScormEngineUtilities::getCanonicalOriginString( 'Rustici Software', 'WordPress', '2.0.7' );
$origin = ScormEngineUtilities::getCanonicalOriginString( 'Rustici Software', 'WordPress', '2.0.8' );

if ( strlen( $engine_url ) < 1 ) {
$engine_url = 'https://cloud.scorm.com/api/v2';
Expand Down Expand Up @@ -129,7 +129,7 @@ public static function remaining_registrations() {
$response = $account_service->GetAccountInfo();

$account_info = json_decode($response);
if ( 'trial' !== (string) $account_info->accountType && 'false' === (string) $account_info->strictLimit ) {
if ( 'trial' !== (string) $account_info->accountType && !$account_info->strictLimit ) {
return 1;
} else {
$reg_limit = (int) $account_info->regLimit;
Expand Down

0 comments on commit d672e5c

Please sign in to comment.