X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiQueryAllLinks.php;h=1fc5ece35d775dbc591c5d28f55ea40c07634915;hb=af7ae6c804be8629fe2305e3a088f03e1af2fa9b;hp=8377e7426f2f06d34d5d12c608387fcfad5062bb;hpb=32fd2342e5648ec7d37eecb00fc4044a3a7526a9;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiQueryAllLinks.php b/includes/api/ApiQueryAllLinks.php index 8377e7426f..1fc5ece35d 100644 --- a/includes/api/ApiQueryAllLinks.php +++ b/includes/api/ApiQueryAllLinks.php @@ -140,7 +140,7 @@ class ApiQueryAllLinks extends ApiQueryGeneratorBase { } else { $this->dieContinueUsageIf( count( $continueArr ) != 2 ); $continueTitle = $db->addQuotes( $continueArr[0] ); - $continueFrom = intval( $continueArr[1] ); + $continueFrom = (int)$continueArr[1]; $this->addWhere( "{$pfx}{$fieldTitle} $op $continueTitle OR " . "({$pfx}{$fieldTitle} = $continueTitle AND " . @@ -204,7 +204,7 @@ class ApiQueryAllLinks extends ApiQueryGeneratorBase { ApiResult::META_TYPE => 'assoc', ]; if ( $fld_ids ) { - $vals['fromid'] = intval( $row->pl_from ); + $vals['fromid'] = (int)$row->pl_from; } if ( $fld_title ) { $title = Title::makeTitle( $namespace, $row->pl_title ); @@ -291,7 +291,7 @@ class ApiQueryAllLinks extends ApiQueryGeneratorBase { return [ "action=query&list={$name}&{$p}from=B&{$p}prop=ids|title" - => "apihelp-$path-example-B", + => "apihelp-$path-example-b", "action=query&list={$name}&{$p}unique=&{$p}from=B" => "apihelp-$path-example-unique", "action=query&generator={$name}&g{$p}unique=&g{$p}from=B"