Move addTrackingCategory from Parser to ParserOutput
authorGergő Tisza <tgr.huwiki@gmail.com>
Tue, 23 Sep 2014 14:36:40 +0000 (14:36 +0000)
committerGergő Tisza <tgr.huwiki@gmail.com>
Sun, 28 Sep 2014 23:35:52 +0000 (23:35 +0000)
commit382d4df8582352777e31e5776a76aecc839de208
treed0f0819f6e0e34fffcae072d0522ca5c7da404ee
parent2fe344a125a9d5f7ea03b2aaec92c4582a2c1fdc
Move addTrackingCategory from Parser to ParserOutput

addTrackingCategory is more in line with ParserOutput's functionality
(addLink, addCategory etc), and tracking categories are useful even for
content types which do not use the parser at all. There is no reason to
require the caller to obtain a Parser object just to be able to add
tracking categories.

Change-Id: I89d9ea1db3a4e6486e77eee940bd438f7753b776
includes/parser/Parser.php
includes/parser/ParserOutput.php