jenkins-bot has submitted this change and it was merged.
Change subject: Use Parser::SFH_OBJECT_ARGS class const
......................................................................
Use Parser::SFH_OBJECT_ARGS class const
Instead of the global const
Change-Id: I1490feb963fd50912576a3de737fddf04a89f691
---
M UserFunctions.php
1 file changed, 4 insertions(+), 4 deletions(-)
Approvals:
Legoktm: Looks good to me, approved
jenkins-bot: Verified
diff --git a/UserFunctions.php b/UserFunctions.php
index dbf4563..34e8d54 100644
--- a/UserFunctions.php
+++ b/UserFunctions.php
@@ -99,10 +99,10 @@
if ( $process ) {
// These functions accept DOM-style arguments
- $parser->setFunctionHook( 'ifanon',
'ExtUserFunctions::ifanonObj', SFH_OBJECT_ARGS );
- $parser->setFunctionHook( 'ifblocked',
'ExtUserFunctions::ifblockedObj', SFH_OBJECT_ARGS );
- $parser->setFunctionHook( 'ifsysop',
'ExtUserFunctions::ifsysopObj', SFH_OBJECT_ARGS );
- $parser->setFunctionHook( 'ifingroup',
'ExtUserFunctions::ifingroupObj', SFH_OBJECT_ARGS );
+ $parser->setFunctionHook( 'ifanon',
'ExtUserFunctions::ifanonObj', Parser::SFH_OBJECT_ARGS );
+ $parser->setFunctionHook( 'ifblocked',
'ExtUserFunctions::ifblockedObj', Parser::SFH_OBJECT_ARGS );
+ $parser->setFunctionHook( 'ifsysop',
'ExtUserFunctions::ifsysopObj', Parser::SFH_OBJECT_ARGS );
+ $parser->setFunctionHook( 'ifingroup',
'ExtUserFunctions::ifingroupObj', Parser::SFH_OBJECT_ARGS );
if ($wgUFEnablePersonalDataFunctions) {
$parser->setFunctionHook( 'realname',
'ExtUserFunctions::realname' );
--
To view, visit https://gerrit.wikimedia.org/r/174187
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I1490feb963fd50912576a3de737fddf04a89f691
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/UserFunctions
Gerrit-Branch: master
Gerrit-Owner: Umherirrender <[email protected]>
Gerrit-Reviewer: Legoktm <[email protected]>
Gerrit-Reviewer: Umherirrender <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits