mirror of
https://github.com/moodle/moodle.git
synced 2025-01-17 21:49:15 +01:00
MDL-66357 core_badges: set OBv2 as default
This commit is contained in:
parent
f958f5c19b
commit
640628192a
@ -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('
|
||||
|
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user