X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fapi%2FApiPageSet.php;h=6afb018e2f89d429ccba8d7f9d7adaeebdf78cdb;hp=1b588650f09d891bf54e7a3e4ea6034ac77e7fcd;hb=54c93f1d384cd5accd2db2ebbb911e4d627c2980;hpb=80d2ef468305b9c211d8d904352ecd25443bcbc0 diff --git a/includes/api/ApiPageSet.php b/includes/api/ApiPageSet.php index 1b588650f0..6afb018e2f 100644 --- a/includes/api/ApiPageSet.php +++ b/includes/api/ApiPageSet.php @@ -77,6 +77,7 @@ class ApiPageSet extends ApiBase { private $mGeneratorData = []; // [ns][dbkey] => data array private $mFakePageId = -1; private $mCacheMode = 'public'; + /** @var array */ private $mRequestedPageFields = []; /** @var int */ private $mDefaultNamespace = NS_MAIN; @@ -1253,7 +1254,7 @@ class ApiPageSet extends ApiBase { // Need gender information if ( - MediaWikiServices::getInstance()->getNamespaceInfo()-> + $services->getNamespaceInfo()-> hasGenderDistinction( $titleObj->getNamespace() ) ) { $usernames[] = $titleObj->getText();