function getArticleTemplate() { // global $REX hier wichtig, damit in den Artikeln die Variable vorhanden ist! global $REX; if ($this->getTemplateId() != 0 && $this->article_id != 0) { ob_start(); ob_implicit_flush(0); $TEMPLATE = new rex_template(); $TEMPLATE->setId($this->getTemplateId()); $tplContent = $TEMPLATE->getTemplate(); $tplContent = $this->replaceCommonVars($tplContent); eval("?>" . $tplContent); $CONTENT = ob_get_contents(); ob_end_clean(); } else { $CONTENT = "no template"; } return $CONTENT; }