DWIM in CategoryManager

If `"has-name": false` is set, then CategoryManager should interpret that
as false, and not treat the existence of the key as making it true.

Same with "parser-migration".

Change-Id: I6b8d5b23fb33707b7596d9172da26fd84d652da8
This commit is contained in:
Kunal Mehta 2019-02-19 10:58:43 -08:00 committed by Krinkle
parent 96f8a08777
commit fcb9eba542

View file

@ -64,10 +64,10 @@ class CategoryManager {
if ( $info['enabled'] ) {
$this->categories[$info['priority']][] = $name;
}
if ( isset( $info['parser-migration'] ) ) {
if ( $info['parser-migration'] ?? false ) {
$this->parserMigrationCategories[$name] = true;
}
if ( isset( $info['has-name'] ) ) {
if ( $info['has-name'] ?? false ) {
$this->hasNameParam[$name] = true;
}
if ( isset( $info['dbid'] ) ) {