From: Vincent Vanwaelscappel Date: Wed, 29 Nov 2023 08:01:14 +0000 (+0100) Subject: wip #6533 @0.25 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=325050b2c5dfe65ae8a5adb386a2695252cc708b;p=fluidbook_tools.git wip #6533 @0.25 --- diff --git a/src/Links/Link.php b/src/Links/Link.php index 36965cb..089eb3f 100644 --- a/src/Links/Link.php +++ b/src/Links/Link.php @@ -467,6 +467,8 @@ class Link { $this->_init = $init; + $ignoreExtraKeys = ['type']; + foreach ($init as $k => $v) { if ($k == 'extra') { if (Json::isJson($v)) { @@ -479,7 +481,9 @@ class Link } else if (str_contains($v, '=')) { $extras = self::parseExtras($v); foreach ($extras as $extrak => $extrav) { - $this->$extrak = $extrav; + if (!in_array($extrak, $ignoreExtraKeys)) { + $this->$extrak = $extrav; + } } continue; }