Index: trunk/extensions/SemanticMediaWiki/includes/SMW_Infolink.php |
— | — | @@ -316,7 +316,9 @@ |
317 | 317 | unset($result['x']); |
318 | 318 | } |
319 | 319 | } |
320 | | - if ($titleparam != '') { |
| 320 | + if (is_array($titleparam)) { |
| 321 | + return $titleparam; |
| 322 | + } elseif ($titleparam != '') { |
321 | 323 | // unescape $p; escaping scheme: all parameters rawurlencoded, "-" and "/" urlencoded, all "%" replaced by "-", parameters then joined with / |
322 | 324 | $ps = explode('/', $titleparam); // params separated by / here (compatible with wiki link syntax) |
323 | 325 | foreach ($ps as $p) { |