diff --git a/src/FreelinkingManager.php b/src/FreelinkingManager.php index f288afa..478b6ca 100644 --- a/src/FreelinkingManager.php +++ b/src/FreelinkingManager.php @@ -106,12 +106,7 @@ public function parseTarget($target, $langcode) { // The first three unnamed arguments are dest, text, and tooltip. $index = 0; foreach ($items as $key => $item) { - // Set argument with INI-style configuration. - if (strpos($item, '=')) { - list($name, $value) = explode('=', $item); - $args[$name] = $value; - } - elseif ($index < 3) { + if ($index < 3) { switch ($index) { case 0: $args['dest'] = $item; @@ -127,6 +122,11 @@ public function parseTarget($target, $langcode) { } $index++; } + // Set argument with INI-style configuration. + elseif (strpos($item, '=')) { + list($name, $value) = explode('=', $item); + $args[$name] = $value; + } else { $args['other'][] = $item; }