Fix wrong verification link for skillsets

For whatever reason, URL structure is different for skillsets compared
to skills.
This commit is contained in:
Daniel Siepmann 2020-10-19 11:48:02 +02:00
parent 6d27e3d0f8
commit ac31dd09d0
Signed by: Daniel Siepmann
GPG key ID: 33D6629915560EF4
2 changed files with 16 additions and 9 deletions

View file

@ -99,7 +99,14 @@ class Link
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) {
case VERIFICATION_EDUCATIONAL:
$link .= '2';

File diff suppressed because one or more lines are too long