Merge pull request #4 from DanielSiepmann/bugfix/skillset-verification-url

Fix wrong verification link for skillsets
This commit is contained in:
Markus Klein 2020-10-19 13:30:21 +02:00 committed by GitHub
commit 195d37986a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 9 deletions

View file

@ -99,7 +99,14 @@ class Link
throw new \InvalidArgumentException('No ID provided.', 1599723825); throw new \InvalidArgumentException('No ID provided.', 1599723825);
} }
$link = $this->settings->getMySkillDisplayUrl() . '/skillup/' . $type . '/' . $id . '/0/'; $link = $this->settings->getMySkillDisplayUrl() . '/skillup/' . $type . '/';
if ($type === self::SKILL_SET) {
$link .= '0/' . $id . '/';
} else {
$link .= $id . '/0/';
}
switch ($vtype) { switch ($vtype) {
case VERIFICATION_EDUCATIONAL: case VERIFICATION_EDUCATIONAL:
$link .= '2'; $link .= '2';

File diff suppressed because one or more lines are too long