Aude has uploaded a new change for review.

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


Change subject: Fix namespace parser function, followup to Ieae80c6
......................................................................

Fix namespace parser function, followup to Ieae80c6

Change-Id: I7a07986639c2773a6e0787d06207a0ed1c889ec1
---
M includes/parser/CoreParserFunctions.php
1 file changed, 2 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/70/104170/1

diff --git a/includes/parser/CoreParserFunctions.php 
b/includes/parser/CoreParserFunctions.php
index ec8f776..9038b5e 100644
--- a/includes/parser/CoreParserFunctions.php
+++ b/includes/parser/CoreParserFunctions.php
@@ -46,7 +46,7 @@
                        'numberofarticles', 'numberoffiles', 'numberofadmins',
                        'numberingroup', 'numberofedits', 'numberofviews', 
'language',
                        'padleft', 'padright', 'anchorencode', 'defaultsort', 
'filepath',
-                       'pagesincategory', 'pagesize', 'protectionlevel', 
'namespace',
+                       'pagesincategory', 'pagesize', 'protectionlevel',
                        'namespacee', 'namespacenumber', 'talkspace', 
'talkspacee',
                        'subjectspace', 'subjectspacee', 'pagename', 
'pagenamee',
                        'fullpagename', 'fullpagenamee', 'rootpagename', 
'rootpagenamee',
@@ -60,6 +60,7 @@
                        $parser->setFunctionHook( $func, array( __CLASS__, 
$func ), SFH_NO_HASH );
                }
 
+               $parser->setFunctionHook( 'namespace',  array( __CLASS__, 
'mwnamespace' ), SFH_NO_HASH );
                $parser->setFunctionHook( 'int',        array( __CLASS__, 
'intFunction' ), SFH_NO_HASH );
                $parser->setFunctionHook( 'special',    array( __CLASS__, 
'special'     ) );
                $parser->setFunctionHook( 'speciale',   array( __CLASS__, 
'speciale'    ) );

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I7a07986639c2773a6e0787d06207a0ed1c889ec1
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Aude <[email protected]>

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

Reply via email to