Umherirrender has uploaded a new change for review.

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

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

Use Parser::SFH_OBJECT_ARGS class const

Instead of the global const

Change-Id: I42dbb1e8943b65f3dd5e61773d1352c05333d0cc
---
M LoopFunctions.php
1 file changed, 2 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/LoopFunctions 
refs/changes/89/174189/1

diff --git a/LoopFunctions.php b/LoopFunctions.php
index 1105604..e658ab3 100644
--- a/LoopFunctions.php
+++ b/LoopFunctions.php
@@ -39,8 +39,8 @@
                global $wgParser, $wgExtLoopFunctions ;
 
                $wgExtLoopFunctions = new ExtLoopFunctions();
-               $wgParser->setFunctionHook( 'for', array(&$wgExtLoopFunctions, 
'forHook'), SFH_OBJECT_ARGS) ;
-               $wgParser->setFunctionHook('foreach', array(__CLASS__, 
'foreachHook'), SFH_OBJECT_ARGS) ;
+               $wgParser->setFunctionHook( 'for', array(&$wgExtLoopFunctions, 
'forHook'), Parser::SFH_OBJECT_ARGS) ;
+               $wgParser->setFunctionHook('foreach', array(__CLASS__, 
'foreachHook'), Parser::SFH_OBJECT_ARGS) ;
 
                return true ;
        }

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I42dbb1e8943b65f3dd5e61773d1352c05333d0cc
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/LoopFunctions
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