Netbrain has submitted this change and it was merged.
Change subject: fixed error with mainlabel and ?=.. special parameter
......................................................................
fixed error with mainlabel and ?=.. special parameter
Change-Id: I460b57a912ba2834c8b3e201c8e79f0aaa0286a5
---
M src/main/parserfunction/Sift.php
1 file changed, 6 insertions(+), 0 deletions(-)
Approvals:
Netbrain: Verified; Looks good to me, approved
diff --git a/src/main/parserfunction/Sift.php b/src/main/parserfunction/Sift.php
index 6149620..2be156d 100644
--- a/src/main/parserfunction/Sift.php
+++ b/src/main/parserfunction/Sift.php
@@ -191,6 +191,12 @@
unset($parameters[$key]);
break;
case '?':
+ //set property of type |?=... as format
parameter, used in conjunction with the mainlabel parameter
+ if ($property === '?') {
+ $this->formatParams[$property]
= $value;
+ unset($parameters[$key]);
+ break;
+ }
//Extract smw property into its own
array
$this->properties[substr($property, 1)]
= $value;
unset($parameters[$key]);
--
To view, visit https://gerrit.wikimedia.org/r/121012
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I460b57a912ba2834c8b3e201c8e79f0aaa0286a5
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/SemanticSifter
Gerrit-Branch: master
Gerrit-Owner: Netbrain <[email protected]>
Gerrit-Reviewer: Netbrain <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits