Update OOjs UI to v0.6.3
[lhc/web/wiklou.git] / includes / CategoryFinder.php
index 9fd3883..33de740 100644 (file)
@@ -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();