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
Simplify PHP by using ?? and ?:
[lhc/web/wiklou.git]
/
includes
/
api
/
ApiQueryAllDeletedRevisions.php
diff --git
a/includes/api/ApiQueryAllDeletedRevisions.php
b/includes/api/ApiQueryAllDeletedRevisions.php
index
be12977
..
2aec66f
100644
(file)
--- a/
includes/api/ApiQueryAllDeletedRevisions.php
+++ b/
includes/api/ApiQueryAllDeletedRevisions.php
@@
-149,11
+149,7
@@
class ApiQueryAllDeletedRevisions extends ApiQueryRevisionsBase {
$miser_ns = null;
if ( $mode == 'all' ) {
$miser_ns = null;
if ( $mode == 'all' ) {
- if ( $params['namespace'] !== null ) {
- $namespaces = $params['namespace'];
- } else {
- $namespaces = MWNamespace::getValidNamespaces();
- }
+ $namespaces = $params['namespace'] ?? MWNamespace::getValidNamespaces();
$this->addWhereFld( 'ar_namespace', $namespaces );
// For from/to/prefix, we have to consider the potential
$this->addWhereFld( 'ar_namespace', $namespaces );
// For from/to/prefix, we have to consider the potential