Merge "Generate $wgAutoloadLocalClasses with a maint script"
[lhc/web/wiklou.git] / includes / CategoryFinder.php
index 9fd3883..cf537e1 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