X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;ds=sidebyside;f=includes%2Fapi%2FApiQueryInfo.php;h=6b8f98c7b9e317c68969ada0c094d82a1a9a706c;hb=c6d1ceb90a9684fa0da758d88ba1e994fad4cffc;hp=e789dd4fb5836a4a2b5636721c1d982577576114;hpb=892b17237bb44630fa6f508c5bf85374a62def13;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiQueryInfo.php b/includes/api/ApiQueryInfo.php index e789dd4fb5..6b8f98c7b9 100644 --- a/includes/api/ApiQueryInfo.php +++ b/includes/api/ApiQueryInfo.php @@ -766,7 +766,7 @@ class ApiQueryInfo extends ApiQueryBase { if ( $this->fld_watched ) { foreach ( $timestamps as $namespaceId => $dbKeys ) { $this->watched[$namespaceId] = array_map( - function( $x ) { + function ( $x ) { return $x !== false; }, $dbKeys @@ -847,7 +847,7 @@ class ApiQueryInfo extends ApiQueryBase { $timestamps[$row->page_namespace][$row->page_title] = $revTimestamp - $age; } $titlesWithThresholds = array_map( - function( LinkTarget $target ) use ( $timestamps ) { + function ( LinkTarget $target ) use ( $timestamps ) { return [ $target, $timestamps[$target->getNamespace()][$target->getDBkey()] ]; @@ -860,7 +860,7 @@ class ApiQueryInfo extends ApiQueryBase { $titlesWithThresholds = array_merge( $titlesWithThresholds, array_map( - function( LinkTarget $target ) { + function ( LinkTarget $target ) { return [ $target, null ]; }, $this->missing @@ -946,6 +946,6 @@ class ApiQueryInfo extends ApiQueryBase { } public function getHelpUrls() { - return 'https://www.mediawiki.org/wiki/API:Info'; + return 'https://www.mediawiki.org/wiki/Special:MyLanguage/API:Info'; } }