Add audience parameter to PoolWorkArticleView
authorGergő Tisza <tgr.huwiki@gmail.com>
Tue, 2 Oct 2018 01:33:28 +0000 (18:33 -0700)
committerGergő Tisza <tgr.huwiki@gmail.com>
Tue, 2 Oct 2018 10:53:28 +0000 (03:53 -0700)
commit5174fa8364c95ac8df9d076dbec51b70e086e01a
tree638f61d00d77ed9a956a8bb96a9ef193e6c911ad
parent28dea19eae656241073c77c64208784c8e1ae5df
Add audience parameter to PoolWorkArticleView

The old behavior was that the audience was RAW if the revision object
parameter got passed in, otherwise PUBLIC. This was undocumented and
not used outside core; this patch gets rid of it in favor of an
explicit argument.

Bug: T205578
Change-Id: Ic7cdb38f658f6d85c48ff13c7f84c64a45c9b1ee
includes/page/Article.php
includes/poolcounter/PoolWorkArticleView.php
tests/phpunit/includes/page/ArticleViewTest.php
tests/phpunit/includes/poolcounter/PoolWorkArticleViewTest.php