Project

General

Profile

Bug #23515 » 15662_v2.diff

Administrator Admin, 2010-09-08 14:36

View differences:

t3lib/spritemanager/class.t3lib_spritemanager_spritegenerator.php (Arbeitskopie)
$sizes = array();
foreach ($this->iconSizes as $sizeTag => $count) {
$size = $this->explodeSizeTag($sizeTag);
$sizes[ceil(sqrt($count)) * $size['width']] = $sizeTag;
$rowWidth = ceil(sqrt($count)) * $size['width'];
while (isset($sizes[$rowWidth])) {
$rowWidth++;
}
$sizes[$rowWidth] = $sizeTag;
}
// reverse sorting: widest group to top
krsort($sizes);
(2-2/2)