← Back to team overview

mahara-contributors team mailing list archive

[Bug 1945959] Re: Configuration of custom badgr server URL for Open Badges displayer sources is broken

 

** Changed in: mahara
       Status: New => In Progress

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: mahara-contributors
https://bugs.launchpad.net/bugs/1945959

Title:
  Configuration of custom badgr server URL for Open Badges displayer
  sources is broken

Status in Mahara:
  In Progress

Bug description:
  Mahara 20.04.2 (same bug in current master branch on github)
  Ubuntu Server 18.04 LTS
  MariaDB 10.3
  Firefox 92.0.1

  Configuration of custom badgr server URL breaks functionality. Token
  can be generated, but no collections can be accessed.

  Bug in blocktype/openbadgedisplayer/lib.php
  Lines 513 and 613 check for hardcoded API-URL

  Replace
         if ($backpack_url == 'https://api.badgr.io/') { 
  with 
         if ($host == 'badgr') { 
  to check for server type instead of server-URL and make it work.

  Not sure what to do with line 419f though...

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1945959/+subscriptions



References