Umherirrender has uploaded a new change for review.
https://gerrit.wikimedia.org/r/174167
Change subject: Use Parser::SFH_NO_HASH class const
......................................................................
Use Parser::SFH_NO_HASH class const
Instead of the global const
Change-Id: I179810392b030744f58eaa1eb41514430fbf997b
---
M SubpageFun.php
1 file changed, 8 insertions(+), 8 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/SubpageFun
refs/changes/67/174167/1
diff --git a/SubpageFun.php b/SubpageFun.php
index 331a1e0..c19e207 100644
--- a/SubpageFun.php
+++ b/SubpageFun.php
@@ -56,14 +56,14 @@
const MAG_TOPLEVELPAGE = 'toplevelpage';
static function init( Parser &$parser ) {
- // optional SFH_NO_HASH to omit the hash '#' from function names
- $parser->setFunctionHook( self::MAG_SUBPAGETITLE, array(
__CLASS__, 'pf_subpagetitle' ), SFH_NO_HASH );
- $parser->setFunctionHook( self::MAG_SUBPAGES, array(
__CLASS__, 'pf_subpages' ), SFH_NO_HASH );
- $parser->setFunctionHook( self::MAG_PARENTPAGES, array(
__CLASS__, 'pf_parentpages' ), SFH_NO_HASH );
- $parser->setFunctionHook( self::MAG_SIBLINGPAGES, array(
__CLASS__, 'pf_siblingpages' ), SFH_NO_HASH );
- $parser->setFunctionHook( self::MAG_SUBPAGELEVEL, array(
__CLASS__, 'pf_subpagelevel' ), SFH_NO_HASH );
- $parser->setFunctionHook( self::MAG_NUMBEROFSUBPAGES, array(
__CLASS__, 'pf_numberofsubpages' ), SFH_NO_HASH );
- $parser->setFunctionHook( self::MAG_TOPLEVELPAGE, array(
__CLASS__, 'pf_toplevelpage' ), SFH_NO_HASH );
+ // optional Parser::SFH_NO_HASH to omit the hash '#' from
function names
+ $parser->setFunctionHook( self::MAG_SUBPAGETITLE, array(
__CLASS__, 'pf_subpagetitle' ), Parser::SFH_NO_HASH );
+ $parser->setFunctionHook( self::MAG_SUBPAGES, array(
__CLASS__, 'pf_subpages' ), Parser::SFH_NO_HASH );
+ $parser->setFunctionHook( self::MAG_PARENTPAGES, array(
__CLASS__, 'pf_parentpages' ), Parser::SFH_NO_HASH );
+ $parser->setFunctionHook( self::MAG_SIBLINGPAGES, array(
__CLASS__, 'pf_siblingpages' ), Parser::SFH_NO_HASH );
+ $parser->setFunctionHook( self::MAG_SUBPAGELEVEL, array(
__CLASS__, 'pf_subpagelevel' ), Parser::SFH_NO_HASH );
+ $parser->setFunctionHook( self::MAG_NUMBEROFSUBPAGES, array(
__CLASS__, 'pf_numberofsubpages' ), Parser::SFH_NO_HASH );
+ $parser->setFunctionHook( self::MAG_TOPLEVELPAGE, array(
__CLASS__, 'pf_toplevelpage' ), Parser::SFH_NO_HASH );
return true;
}
--
To view, visit https://gerrit.wikimedia.org/r/174167
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I179810392b030744f58eaa1eb41514430fbf997b
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/SubpageFun
Gerrit-Branch: master
Gerrit-Owner: Umherirrender <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits