Merge pull request #65 from neayi/bug-63-fixed-links-for-categories

Fixed issue #63: when linking to a category, needs to prefix with a colon
This commit is contained in:
Daniel Kraus
2022-07-27 11:16:40 +02:00
committed by GitHub

View File

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