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
This commit is contained in:
Ammarpad 2024-11-01 12:31:12 +01:00
parent c2b69989fa
commit a925bb10cd

View file

@ -231,7 +231,7 @@ class Hooks implements
}
return $message .
$ct->getTag( $cat, $hideroot, $attr, $depth );
$ct->getTag( $cat ?? '', $hideroot, $attr, $depth );
}
/**