Topic on User talk:Faure.thomas

Bug report and fix for Categorize

1
74.77.189.231 (talkcontribs)

In Categorize.body.php the the category harvesting fails if there is more than one category on a line. To fix:

Change:

     $m_pattern = "\[\[({$m_catString}|category):(.*)\]\]";

to

     $m_pattern = "\[\[({$m_catString}|category):(.*?)\]\]";

(i.e. make the search for closing ]] lazy)

Reply to "Bug report and fix for Categorize"