(bug 27722) list=filearchive now supports revdel
authorBryan Tong Minh <btongminh@users.mediawiki.org>
Mon, 7 Mar 2011 17:07:10 +0000 (17:07 +0000)
committerBryan Tong Minh <btongminh@users.mediawiki.org>
Mon, 7 Mar 2011 17:07:10 +0000 (17:07 +0000)
commit3d3f61a0ab6fcd58a0e60300920138725b5a4796
tree120e142c7bed945d006ccb020e8a386d1f0f0844
parentae7215c4ada68e8f964169b833dec30c7c29e5a4
(bug 27722) list=filearchive now supports revdel
* Adds a condition fa_deleted=0 if the user does not have the suppressrevision rights. This field is unindexed. This should however not be a big problem as files with fa_deleted are rare. Unfortunately this hides files that do not have DELETED_RESTRICTED, but I don't know how bad fa_deleted & DELETED_RESTRICTED = 0 is for performance
* Added deletedfile, deletedcomment, deleteduser and deletedrestricted to the output for what I think are appropriate fa_deleted fields, but it's hard to tell what's corrent without a single line of documentation or even comment in the code. Perhaps somebody can dig up a commit message where the purpose of the constants is explained?
includes/api/ApiQueryFilearchive.php