From: Jens Frank Date: Mon, 9 Oct 2006 11:53:12 +0000 (+0000) Subject: (bug 7529) Including a non-existent category in an article places that article in... X-Git-Tag: 1.31.0-rc.0~55560 X-Git-Url: http://git.cyclocoop.org/%24image?a=commitdiff_plain;h=06d6e4fe1463c9135a45e67e85184399f8cddde5;p=lhc%2Fweb%2Fwiklou.git (bug 7529) Including a non-existent category in an article places that article in the category --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 3647f8aeb4..4b09696c4c 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -278,6 +278,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * (bug 7520) Update article counts on XML import * (bug 7526) Make $wgDefaultUserOptions work again * (bug 7472) Localize Help namespace for Basque +* (bug 7529) Including a non-existent category in an article places that article in the category == Languages updated == diff --git a/includes/Parser.php b/includes/Parser.php index bf386aed05..7678344883 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -3014,7 +3014,7 @@ class Parser # If the title is valid but undisplayable, make a link to it if ( !$found && ( $this->ot['html'] || $this->ot['pre'] ) ) { - $text = "[[$titleText]]"; + $text = "[[:$titleText]]"; $found = true; } } elseif ( $title->isTrans() ) {