Skip to content

Commit

Permalink
Merge branch 'release/1.0.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrey Kharanenka committed Apr 17, 2019
2 parents 0cbffc6 + c3f14ed commit 8f86e2a
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 139 deletions.
5 changes: 1 addition & 4 deletions components/ArticleList.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@
*/
class ArticleList extends SortingElementList
{
/** @var ArticleListStore */
protected $obArticleListStore;

/**
* @return array
*/
Expand Down Expand Up @@ -59,7 +56,7 @@ public function make($arElementIDList = null)
{
return ArticleCollection::make($arElementIDList);
}

public function onAjaxRequest()
{
return true;
Expand Down
8 changes: 4 additions & 4 deletions components/ArticlePage.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public function componentDetails()
'description' => 'lovata.goodnews::lang.component.article_page_desc'
];
}

/**
* Get element object
* @param string $sElementSlug
Expand All @@ -36,17 +36,17 @@ protected function getElementObject($sElementSlug)
if(empty($sElementSlug)) {
return null;
}

$obElement = Article::getBySlug($sElementSlug)
->getByStatus(Article::STATUS_PUBLISHED)
->getPublished()
->first();

if(!empty($obElement)) {
$obElement->view_count++;
$obElement->save();
}

return $obElement;
}

Expand Down
34 changes: 0 additions & 34 deletions components/CategoryData.php

This file was deleted.

43 changes: 0 additions & 43 deletions components/CategoryList.php

This file was deleted.

54 changes: 0 additions & 54 deletions components/CategoryPage.php

This file was deleted.

0 comments on commit 8f86e2a

Please sign in to comment.