MDL-66357 core_badges: set OBv2 as default

This commit is contained in:
Sara Arjona 2020-03-24 13:18:15 +01:00
parent f958f5c19b
commit 640628192a
2 changed files with 3 additions and 2 deletions

View File

@ -49,7 +49,7 @@ 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.
@ -57,7 +57,7 @@ class core_badges_assertion {
* @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('

View File

@ -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.