mirror of
https://github.com/SkillDisplay/PHPToolKit.git
synced 2024-11-21 23:46:09 +01:00
Fix wrong verification link for skillsets
For whatever reason, URL structure is different for skillsets compared to skills.
This commit is contained in:
parent
6d27e3d0f8
commit
ac31dd09d0
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