Fixed issue #63: when linking to a category, needs to prefix with a colon

This commit is contained in:
Bertrand Gorge
2022-06-27 19:45:18 +02:00
parent c0e5396403
commit 29dcd69787

View File

@ -95,7 +95,11 @@ class Target {
}
public function getPrefixedTitleText() {
return $this->title->getPrefixedText();
if ($this->title->getNamespace() == NS_CATEGORY)
return ':' . $this->title->getPrefixedText();
else
return $this->title->getPrefixedText();
}
/**