Merge branch 'MDL-49170_28' of https://github.com/totara/openbadges into MOODLE_28_STABLE

This commit is contained in:
Eloy Lafuente (stronk7)
2015-02-17 23:43:38 +01:00
+1 -1
View File
@@ -49,7 +49,7 @@ $assertion = filter_input(
// Audience is the site url scheme + host + port only.
$wwwparts = parse_url($CFG->wwwroot);
$audience = $wwwparts['scheme'] . '://' . $wwwparts['host'];
$audience .= isset($wwwparts['port']) ? $wwwparts['port'] : '';
$audience .= isset($wwwparts['port']) ? ':' . $wwwparts['port'] : '';
$params = 'assertion=' . urlencode($assertion) . '&audience=' .
urlencode($audience);