Commit 3b8b71d1 authored by Vasily Bezruchkin's avatar Vasily Bezruchkin 💬
Browse files

Images on favorites.

parent c02f1a4e
......@@ -163,7 +163,14 @@ class iaArticle extends abstractPublishingPackageFront
$sql .= $order ? 'ORDER BY ' . $order : '';
$sql .= ' LIMIT 1';
return $this->iaDb->getRow($sql);
if ($article = $this->iaDb->getRow($sql))
{
$result = array($article);
$this->wrapValues($result);
$article = array_shift($result);
}
return $article;
}
/**
......
......@@ -139,13 +139,6 @@ if (iaView::REQUEST_HTML == $iaView->getRequestType())
{
$article['body'] .= iaLanguage::getf('article_source_url', array('url' => $iaArticle->url('view', $article)));
}
// TODO: remove once implemented in the core script
$article = array($article);
$iaArticle->wrapValues($article);
$article = array_shift($article);
//
$iaView->assign('item', $article);
$iaView->assign('session_id', session_id());
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment