r59594 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r59593‎ | r59594 | r59595 >
Date:19:31, 30 November 2009
Author:yaron
Status:deferred
Tags:
Comment:
Added handling for "parsing" parameters if they're an array, necessary for new version of Special:Ask
Modified paths:
  • /trunk/extensions/SemanticMediaWiki/includes/SMW_Infolink.php (modified) (history)

Diff [purge]

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

Status & tagging log