/** * set the Article for use on the current page * * @param integer $article_id The database id of the Article to use * @access public * @since 3.5.3 * @return void */ function setArticle($article_id) { require_once 'AMP/Content/Article.inc.php'; $article = new Article($this->dbcon, $article_id); if (!$article->hasData()) { AMP_make_404(); return false; } //ampredirect( AMP_CONTENT_URL_SEARCH ); if ($target = $article->getRedirect()) { ampredirect($target); } $this->section_id = $article->getParent(); $this->_globalizeArticleVars($article); $this->_globalizePageVars(); $this->article =& $article; }