mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 09:05:58 +00:00
commit
d2ab260ecb
@ -134,7 +134,7 @@ if(class_exists('Widget')) {
|
|||||||
|
|
||||||
// Find position of $count in the selected range, adjusted for bucket range used
|
// Find position of $count in the selected range, adjusted for bucket range used
|
||||||
if($maxCount == $minCount) {
|
if($maxCount == $minCount) {
|
||||||
$popularities = $offset;
|
$popularity = $offset;
|
||||||
} else {
|
} else {
|
||||||
$popularity = round(
|
$popularity = round(
|
||||||
($count-$minCount) / ($maxCount-$minCount) * ($numsizes-1)
|
($count-$minCount) / ($maxCount-$minCount) * ($numsizes-1)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user