Skip to content

Commit

Permalink
MDL-66357 core_badges: set OBv2 as default
Browse files Browse the repository at this point in the history
  • Loading branch information
sarjona committed Apr 3, 2020
1 parent f958f5c commit 6406281
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions badges/classes/assertion.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,15 @@ class core_badges_assertion {
private $_url;

/** @var int $obversion to control version JSON-LD. */
private $_obversion = OPEN_BADGES_V1;
private $_obversion = OPEN_BADGES_V2;

/**
* Constructs with issued badge unique hash.
*
* @param string $hash Badge unique hash from badge_issued table.
* @param int $obversion to control version JSON-LD.
*/
public function __construct($hash, $obversion = OPEN_BADGES_V1) {
public function __construct($hash, $obversion = OPEN_BADGES_V2) {
global $DB;

$this->_data = $DB->get_record_sql('
Expand Down
1 change: 1 addition & 0 deletions badges/upgrade.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ information provided here is intended especially for developers.

=== 3.9 ===
* BADGE_BACKPACKAPIURL and BADGE_BACKPACKWEBURL are deprecated and should not be used.
* OBv2 has been set to the default value when the obversion is not defined.

=== 3.7 ===
* BADGE_BACKPACKURL is deprecated and should not be used.
Expand Down

0 comments on commit 6406281

Please sign in to comment.