r63468 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r63467‎ | r63468 | r63469 >
Date:16:10, 9 March 2010
Author:yaron
Status:deferred
Tags:
Comment:
Changed again, to match Uwe Baumbach's actual fix
Modified paths:
  • /trunk/extensions/SemanticForms/specials/SF_Templates.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticForms/specials/SF_Templates.php
@@ -72,7 +72,7 @@
7373
7474 $template_text = $template_article->getContent();
7575 $cat_ns_name = $wgContLang->getNsText(14);
76 - if (preg_match_all("/\[\[$cat_ns_name:(.*)\]\]/", $template_text, $matches)) {
 76+ if (preg_match_all("/\[\[(Category|$cat_ns_name):(.*)\]\]/", $template_text, $matches)) {
7777 // get the last match - if there's more than one
7878 // category tag, there's a good chance that the last
7979 // one will be the relevant one - the others are

Status & tagging log