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
doc: Clean up documentation in ResourceLoader.php
[lhc/web/wiklou.git]
/
includes
/
api
/
ApiQueryProtectedTitles.php
diff --git
a/includes/api/ApiQueryProtectedTitles.php
b/includes/api/ApiQueryProtectedTitles.php
index
222ad07
..
ea350ad
100644
(file)
--- a/
includes/api/ApiQueryProtectedTitles.php
+++ b/
includes/api/ApiQueryProtectedTitles.php
@@
-80,8
+80,9
@@
class ApiQueryProtectedTitles extends ApiQueryGeneratorBase {
$titles = array();
foreach ( $res as $row ) {
$titles = array();
foreach ( $res as $row ) {
- if ( ++ $count > $params['limit'] ) {
- // We've reached the one extra which shows that there are additional pages to be had. Stop here...
+ if ( ++$count > $params['limit'] ) {
+ // We've reached the one extra which shows that there are
+ // additional pages to be had. Stop here...
$this->setContinueEnumParameter( 'start', wfTimestamp( TS_ISO_8601, $row->pt_timestamp ) );
break;
}
$this->setContinueEnumParameter( 'start', wfTimestamp( TS_ISO_8601, $row->pt_timestamp ) );
break;
}
@@
-131,7
+132,10
@@
class ApiQueryProtectedTitles extends ApiQueryGeneratorBase {
}
if ( is_null( $resultPageSet ) ) {
}
if ( is_null( $resultPageSet ) ) {
- $result->setIndexedTagName_internal( array( 'query', $this->getModuleName() ), $this->getModulePrefix() );
+ $result->setIndexedTagName_internal(
+ array( 'query', $this->getModuleName() ),
+ $this->getModulePrefix()
+ );
} else {
$resultPageSet->populateFromTitles( $titles );
}
} else {
$resultPageSet->populateFromTitles( $titles );
}
@@
-148,6
+152,7
@@
class ApiQueryProtectedTitles extends ApiQueryGeneratorBase {
public function getAllowedParams() {
global $wgRestrictionLevels;
public function getAllowedParams() {
global $wgRestrictionLevels;
+
return array(
'namespace' => array(
ApiBase::PARAM_ISMULTI => true,
return array(
'namespace' => array(
ApiBase::PARAM_ISMULTI => true,
@@
-216,6
+221,7
@@
class ApiQueryProtectedTitles extends ApiQueryGeneratorBase {
public function getResultProperties() {
global $wgRestrictionLevels;
public function getResultProperties() {
global $wgRestrictionLevels;
+
return array(
'' => array(
'ns' => 'namespace',
return array(
'' => array(
'ns' => 'namespace',