Page MenuHomePhabricator

Use page properties to find if a category is hidden
Closed, ResolvedPublic

Description

In page.py the class Category has the following function:

def isHiddenCategory(self):

"""Return True if the category is hidden."""
# FIXME
# This should use action=query&list=allcategories
# setting acfrom and acto to the category title and adding
# acprop=hidden but currently fails  in some cases
# (see bug 48824)
return '__HIDDENCAT__' in self.expand_text()

It should probably just get the page property from properties()


Version: core-(2.0)
Severity: enhancement

Details

Reference
bz65149