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 packageFiles feature to replace special-purpose RL modules
[lhc/web/wiklou.git]
/
includes
/
specials
/
SpecialPageLanguage.php
diff --git
a/includes/specials/SpecialPageLanguage.php
b/includes/specials/SpecialPageLanguage.php
index
e3485ff
..
52db060
100644
(file)
--- a/
includes/specials/SpecialPageLanguage.php
+++ b/
includes/specials/SpecialPageLanguage.php
@@
-163,7
+163,7
@@
class SpecialPageLanguage extends FormSpecialPage {
$this->getContext(),
$title,
$newLanguage,
$this->getContext(),
$title,
$newLanguage,
- $data['reason']
=== null ? '' : $data['reason']
+ $data['reason']
?? ''
);
}
);
}
@@
-224,8
+224,8
@@
class SpecialPageLanguage extends FormSpecialPage {
}
// Hardcoded [def] if the language is set to null
}
// Hardcoded [def] if the language is set to null
- $logOld = $oldLanguage ?
$oldLanguage
: $defLang . '[def]';
- $logNew = $newLanguage ?
$newLanguage
: $defLang . '[def]';
+ $logOld = $oldLanguage ?: $defLang . '[def]';
+ $logNew = $newLanguage ?: $defLang . '[def]';
// Writing new page language to database
$dbw->update(
// Writing new page language to database
$dbw->update(