rating MDL-24513 made scales.php work with site level (not course level) scales