mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CategoryTree
synced 2024-11-27 17:51:00 +00:00
Fix handling of self-closing tag
self closing tag <categorytree/> is invalid, but where encountered
the content of the tag is null.
Convert the null to empty string since CategoryTree::getTag require one
Bug: T378765
Change-Id: Iede4499952295b75a19bd05a5963caab00a9cadd
(cherry picked from commit a925bb10cd
)
This commit is contained in:
parent
bb36ea0527
commit
58f15e7717
|
@ -231,7 +231,7 @@ class Hooks implements
|
|||
}
|
||||
|
||||
return $message .
|
||||
$ct->getTag( $cat, $hideroot, $attr, $depth );
|
||||
$ct->getTag( $cat ?? '', $hideroot, $attr, $depth );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue