VasilievVV schreef:
I'd propose to use Title::newFromText( $title, NS_CATEGORY ) so both variants can be used
This does *not* mean both variants can be used! Title::newFromText("Category:Example", NS_CATEGORY); will return a Title object associated with "Category:Category:Example". In case someone is crazy enough to create a category by that name, ambiguities could arise: does cmtitle=Category:Example mean [[Category:Example]] or [[Category:Category:Example]]?
Roan Kattouw (Catrope)