X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiQueryPrefixSearch.php;h=e5f611fa3a3d780a1ac38bcbe38208ebb4ac865f;hb=701b642fdc55de095e050cc56d65c61225473a06;hp=04d3f2c9fcac60fa888331b325713129a21fe652;hpb=85724779efcb5e70bf6c6f8867fa4d6dc957c566;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiQueryPrefixSearch.php b/includes/api/ApiQueryPrefixSearch.php index 04d3f2c9fc..e5f611fa3a 100644 --- a/includes/api/ApiQueryPrefixSearch.php +++ b/includes/api/ApiQueryPrefixSearch.php @@ -74,13 +74,13 @@ class ApiQueryPrefixSearch extends ApiQueryGeneratorBase { $count = 0; foreach ( $titles as $title ) { $vals = [ - 'ns' => intval( $title->getNamespace() ), + 'ns' => (int)$title->getNamespace(), 'title' => $title->getPrefixedText(), ]; if ( $title->isSpecialPage() ) { $vals['special'] = true; } else { - $vals['pageid'] = intval( $title->getArticleID() ); + $vals['pageid'] = (int)$title->getArticleID(); } $fit = $result->addValue( [ 'query', $this->getModuleName() ], null, $vals ); ++$count;