diff --git a/core/components/articles/processors/extras/gettags.class.php b/core/components/articles/processors/extras/gettags.class.php index 3b704e0..a564da8 100755 --- a/core/components/articles/processors/extras/gettags.class.php +++ b/core/components/articles/processors/extras/gettags.class.php @@ -18,11 +18,7 @@ public function process() { return false; } - $articles = $parent->getMany('Children',array('deleted' => 0)); - $articleIDs = array(); - foreach($articles as $article){ - $articleIDs[] = $article->id; - } + $articleIDs = $this->modx->getChildIds($parent->id,6,array('context' => $parent->get('context_key'))); $templateVariable = $this->modx->getObject('modTemplateVar', array('name' => 'articlestags')); if(!$templateVariable){ @@ -58,4 +54,4 @@ public function process() { } } -return 'ArticleExtrasGetTagsProcessor'; \ No newline at end of file +return 'ArticleExtrasGetTagsProcessor';