mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-13 21:31:35 +02:00
Merged -r27294 from trunk:
feature 3043: Add event to allow calculation of rating score with a different algorithm git-svn-id: http://piwigo.org/svn/branches/2.6@27295 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -136,6 +136,11 @@ INSERT
|
||||
*/
|
||||
function update_rating_score($element_id = false)
|
||||
{
|
||||
if ( ($alt_result = trigger_event('update_rating_score', false, $element_id)) !== false)
|
||||
{
|
||||
return $alt_result;
|
||||
}
|
||||
|
||||
$query = '
|
||||
SELECT element_id,
|
||||
COUNT(rate) AS rcount,
|
||||
|
||||
Reference in New Issue
Block a user