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
Merge "rdbms: make LoadBalancer::doWait() cast $timeout to an integer"
[lhc/web/wiklou.git]
/
includes
/
api
/
ApiSetNotificationTimestamp.php
diff --git
a/includes/api/ApiSetNotificationTimestamp.php
b/includes/api/ApiSetNotificationTimestamp.php
index
663416e
..
f7dc4a7
100644
(file)
--- a/
includes/api/ApiSetNotificationTimestamp.php
+++ b/
includes/api/ApiSetNotificationTimestamp.php
@@
-3,8
+3,6
@@
/**
* API for MediaWiki 1.14+
*
/**
* API for MediaWiki 1.14+
*
- * Created on Jun 18, 2012
- *
* Copyright © 2012 Wikimedia Foundation and contributors
*
* This program is free software; you can redistribute it and/or modify
* Copyright © 2012 Wikimedia Foundation and contributors
*
* This program is free software; you can redistribute it and/or modify
@@
-32,7
+30,7
@@
use MediaWiki\MediaWikiServices;
*/
class ApiSetNotificationTimestamp extends ApiBase {
*/
class ApiSetNotificationTimestamp extends ApiBase {
- private $mPageSet;
+ private $mPageSet
= null
;
public function execute() {
$user = $this->getUser();
public function execute() {
$user = $this->getUser();
@@
-150,7
+148,7
@@
class ApiSetNotificationTimestamp extends ApiBase {
);
// Now, put the valid titles into the result
);
// Now, put the valid titles into the result
- /** @var
$title T
itle */
+ /** @var
Title $t
itle */
foreach ( $pageSet->getTitles() as $title ) {
$ns = $title->getNamespace();
$dbkey = $title->getDBkey();
foreach ( $pageSet->getTitles() as $title ) {
$ns = $title->getNamespace();
$dbkey = $title->getDBkey();
@@
-189,7
+187,7
@@
class ApiSetNotificationTimestamp extends ApiBase {
* @return ApiPageSet
*/
private function getPageSet() {
* @return ApiPageSet
*/
private function getPageSet() {
- if (
!isset( $this->mPageSet )
) {
+ if (
$this->mPageSet === null
) {
$this->mPageSet = new ApiPageSet( $this );
}
$this->mPageSet = new ApiPageSet( $this );
}