dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use (int) rather than intval()
[lhc/web/wiklou.git]
/
includes
/
api
/
ApiQueryPageProps.php
diff --git
a/includes/api/ApiQueryPageProps.php
b/includes/api/ApiQueryPageProps.php
index
de1df34
..
61d8a94
100644
(file)
--- a/
includes/api/ApiQueryPageProps.php
+++ b/
includes/api/ApiQueryPageProps.php
@@
-1,9
+1,5
@@
<?php
/**
<?php
/**
- *
- *
- * Created on Aug 7, 2010
- *
* Copyright © 2010 soxred93, Bryan Tong Minh
*
* This program is free software; you can redistribute it and/or modify
* Copyright © 2010 soxred93, Bryan Tong Minh
*
* This program is free software; you can redistribute it and/or modify
@@
-43,7
+39,7
@@
class ApiQueryPageProps extends ApiQueryBase {
$this->params = $this->extractRequestParams();
if ( $this->params['continue'] ) {
$this->params = $this->extractRequestParams();
if ( $this->params['continue'] ) {
- $continueValue =
intval( $this->params['continue'] )
;
+ $continueValue =
(int)$this->params['continue']
;
$this->dieContinueUsageIf( strval( $continueValue ) !== $this->params['continue'] );
$filteredPages = [];
foreach ( $pages as $id => $page ) {
$this->dieContinueUsageIf( strval( $continueValue ) !== $this->params['continue'] );
$filteredPages = [];
foreach ( $pages as $id => $page ) {
@@
-54,7
+50,7
@@
class ApiQueryPageProps extends ApiQueryBase {
$pages = $filteredPages;
}
$pages = $filteredPages;
}
- if (
!count( $pages )
) {
+ if (
$pages === []
) {
# Nothing to do
return;
}
# Nothing to do
return;
}
@@
-120,6
+116,6
@@
class ApiQueryPageProps extends ApiQueryBase {
}
public function getHelpUrls() {
}
public function getHelpUrls() {
- return 'https://www.mediawiki.org/wiki/API:Pageprops';
+ return 'https://www.mediawiki.org/wiki/
Special:MyLanguage/
API:Pageprops';
}
}
}
}