X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2FCategoryFinder.php;h=33de7404eb3e7e089d1f56f76bcd120a3987ea1f;hb=9e4e227ea3c61b23a13bb4a5bae77a48f1941296;hp=9fd388352a5f7b105f13c281c0f6902957899105;hpb=abcb1a749ba9e654c5c23204dd7f2855dc19d392;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/CategoryFinder.php b/includes/CategoryFinder.php index 9fd388352a..33de7404eb 100644 --- a/includes/CategoryFinder.php +++ b/includes/CategoryFinder.php @@ -114,6 +114,14 @@ class CategoryFinder { return $ret; } + /** + * Get the parents. Only really useful if run() has been called already + * @return array + */ + public function getParents() { + return $this->parents; + } + /** * This functions recurses through the parent representation, trying to match the conditions * @param int $id The article/category to check @@ -177,7 +185,6 @@ class CategoryFinder { * Scans a "parent layer" of the articles/categories in $this->next */ private function scanNextLayer() { - $profiler = new ProfileSection( __METHOD__ ); # Find all parents of the article currently in $this->next $layer = array();