X-Git-Url: https://git.cyclocoop.org/%242?a=blobdiff_plain;f=includes%2Fapi%2FApiPageSet.php;h=ea2a85fb1ea5f0c1c4e42d830c9e4e8428e75a02;hb=88f469624df1c65546d923e62b4550415826c458;hp=515ebc594ce5b25f3357439d175bd59f246c8023;hpb=2dd32981a8326a6207ac866b39410f1b86179288;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiPageSet.php b/includes/api/ApiPageSet.php index 515ebc594c..ea2a85fb1e 100644 --- a/includes/api/ApiPageSet.php +++ b/includes/api/ApiPageSet.php @@ -460,7 +460,7 @@ class ApiPageSet extends ApiBase { /** * Get a list of redirect resolutions - maps a title to its redirect * target. Includes generator data for redirect source when available. - * @param ApiResult $result + * @param ApiResult|null $result * @return array Array of prefixed_title (string) => Title object * @since 1.21 */ @@ -507,7 +507,7 @@ class ApiPageSet extends ApiBase { /** * Get a list of title normalizations - maps a title to its normalized * version in the form of result array. - * @param ApiResult $result + * @param ApiResult|null $result * @return array Array of raw_prefixed_title (string) => prefixed_title (string) * @since 1.21 */ @@ -542,7 +542,7 @@ class ApiPageSet extends ApiBase { /** * Get a list of title conversions - maps a title to its converted * version as a result array. - * @param ApiResult $result + * @param ApiResult|null $result * @return array Array of (from, to) strings * @since 1.21 */ @@ -573,7 +573,7 @@ class ApiPageSet extends ApiBase { /** * Get a list of interwiki titles - maps a title to its interwiki * prefix as result. - * @param ApiResult $result + * @param ApiResult|null $result * @param bool $iwUrl * @return array Array of raw_prefixed_title (string) => interwiki_prefix (string) * @since 1.21 @@ -692,7 +692,7 @@ class ApiPageSet extends ApiBase { /** * Revision IDs that were not found in the database as result array. - * @param ApiResult $result + * @param ApiResult|null $result * @return array Array of revision IDs * @since 1.21 */ @@ -1200,7 +1200,7 @@ class ApiPageSet extends ApiBase { // Variants checking global $wgContLang; if ( $this->mConvertTitles && - count( $wgContLang->getVariants() ) > 1 && + $wgContLang->hasVariants() && !$titleObj->exists() ) { // Language::findVariantLink will modify titleText and titleObj into