Umherirrender has uploaded a new change for review.

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

Change subject: Use Parser::SFH_OBJECT_ARGS class const
......................................................................

Use Parser::SFH_OBJECT_ARGS class const

Instead of the global const

Change-Id: I0ef7cc7f3321d9c1ec8938c6b671fe09678195a2
---
M includes/SF_ParserFunctions.php
1 file changed, 4 insertions(+), 4 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/SemanticForms 
refs/changes/22/174222/1

diff --git a/includes/SF_ParserFunctions.php b/includes/SF_ParserFunctions.php
index 5573f2b..2a0cfbc 100644
--- a/includes/SF_ParserFunctions.php
+++ b/includes/SF_ParserFunctions.php
@@ -155,8 +155,8 @@
                $parser->setFunctionHook( 'formlink', array( 
'SFParserFunctions', 'renderFormLink' ) );
                $parser->setFunctionHook( 'queryformlink', array( 
'SFParserFunctions', 'renderQueryFormLink' ) );
                if ( defined( get_class( $parser ) . '::SFH_OBJECT_ARGS' ) ) {
-                       $parser->setFunctionHook( 'arraymap', array( 
'SFParserFunctions', 'renderArrayMapObj' ), SFH_OBJECT_ARGS );
-                       $parser->setFunctionHook( 'arraymaptemplate', array( 
'SFParserFunctions', 'renderArrayMapTemplateObj' ), SFH_OBJECT_ARGS );
+                       $parser->setFunctionHook( 'arraymap', array( 
'SFParserFunctions', 'renderArrayMapObj' ), Parser::SFH_OBJECT_ARGS );
+                       $parser->setFunctionHook( 'arraymaptemplate', array( 
'SFParserFunctions', 'renderArrayMapTemplateObj' ), Parser::SFH_OBJECT_ARGS );
                } else {
                        $parser->setFunctionHook( 'arraymap', array( 
'SFParserFunctions', 'renderArrayMap' ) );
                        $parser->setFunctionHook( 'arraymaptemplate', array( 
'SFParserFunctions', 'renderArrayMapTemplate' ) );
@@ -434,7 +434,7 @@
        }
 
        /**
-        * SFH_OBJ_ARGS
+        * Parser::SFH_OBJ_ARGS
         * {{#arraymap:value|delimiter|var|formula|new_delimiter}}
         */
        static function renderArrayMapObj( &$parser, $frame, $args ) {
@@ -503,7 +503,7 @@
        }
 
        /**
-        * SFH_OBJ_ARGS
+        * Parser::SFH_OBJ_ARGS
         * {{#arraymaptemplate:value|template|delimiter|new_delimiter}}
         */
        static function renderArrayMapTemplateObj( &$parser, $frame, $args ) {

-- 
To view, visit https://gerrit.wikimedia.org/r/174222
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I0ef7cc7f3321d9c1ec8938c6b671fe09678195a2
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/SemanticForms
Gerrit-Branch: master
Gerrit-Owner: Umherirrender <umherirrender_de...@web.de>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to