Netbrain has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/121009

Change subject: fixed error with mainlabel and ?=.. special parameter
......................................................................

fixed error with mainlabel and ?=.. special parameter

Change-Id: I3cef0189de95e87525665864765a3ac08e4520b6
---
M src/main/parserfunction/Sift.php
1 file changed, 6 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/SemanticSifter 
refs/changes/09/121009/1

diff --git a/src/main/parserfunction/Sift.php b/src/main/parserfunction/Sift.php
index da5f1b9..9022baf 100644
--- a/src/main/parserfunction/Sift.php
+++ b/src/main/parserfunction/Sift.php
@@ -179,7 +179,12 @@
                        list($property, $value) = array_pad(explode('=', $arg, 
2), 2, null);
                        switch (substr($arg, 0, 1)) {
                                case '?':
-                                       //case '!': //FIXME why is this here?
+                                       //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/121009
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I3cef0189de95e87525665864765a3ac08e4520b6
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/SemanticSifter
Gerrit-Branch: master
Gerrit-Owner: Netbrain <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to