mirror of
https://github.com/SkillDisplay/PHPToolKit.git
synced 2024-11-24 08:36:09 +01:00
Merge pull request #4 from DanielSiepmann/bugfix/skillset-verification-url
Fix wrong verification link for skillsets
This commit is contained in:
commit
195d37986a
2 changed files with 16 additions and 9 deletions
|
@ -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
Loading…
Reference in a new issue