Version 4.1.2
This commit is contained in:
1 parent
3ba79295ee
commit
28bd025b35
1131 files changed
+63658
-20579
No files matched your search
@@ -193,16 +193,6 @@ abstract class _Review extends \IPS\Content\Comment
|
||||
|
||||
return $this->_url[ $_key ];
|
||||
}
|
||||
|
||||
/**
|
||||
* Get HTML for search result display
|
||||
*
|
||||
* @return callable
|
||||
*/
|
||||
public function searchResultHtml()
|
||||
{
|
||||
return \IPS\Theme::i()->getTemplate( 'search', 'core', 'front' )->contentReview( $this );
|
||||
}
|
||||
|
||||
/**
|
||||
* Get line which says how many users found review helpful
|
||||
@@ -233,11 +223,11 @@ abstract class _Review extends \IPS\Content\Comment
|
||||
$column = $item::$databaseColumnMap['num_reviews'];
|
||||
$item->$column = $item->mapped('num_reviews') - 1;
|
||||
}
|
||||
$item->resyncLastReview();
|
||||
|
||||
|
||||
$ratingField = $item::$databaseColumnMap['rating'];
|
||||
$item->$ratingField = $item->averageReviewRating() ?: 0;
|
||||
|
||||
|
||||
$item->resyncLastReview();
|
||||
$item->save();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user