$db = eFactory::getDB(); $sql = "SELECT ".$db->quoteId('image').", ".$db->quoteId('caption')." FROM ".$db->quoteId('#__content')." WHERE ".$db->quoteId('id')." = ".$article_elxis_id; $stmt = $db->prepareLimit($sql, 0, 1); $stmt->execute(); $data = $stmt->fetch(PDO::FETCH_OBJ);
if ($this->translate && ($this->lng != '')) { $this->translateArticle($data); }