MDL-1883 - /course/scales.php very slow. "Backported" the fix by Petr from 1.9 to 1.8. Not a direct merge as the code has been refactored.

This commit is contained in:
samulik 2007-09-24 06:32:14 +00:00
parent f99ed7c86d
commit 186b0a1537
8 changed files with 129 additions and 41 deletions

View file

@ -1225,6 +1225,17 @@ function hotpot_scale_used ($hotpotid, $scaleid) {
return $report;
}
/**
* Returns true if the scale is in use in the system.
*
* @param $scaleid int The scale to be counted.
* @return boolean
*/
function hotpot_scale_used_anywhere($scaleid) {
// return record_exists("hotpot","scale","-$scaleid");
return false; // Scales are not used by Hotpot module
}
//////////////////////////////////////////////////////////
/// Any other hotpot functions go here.
/// Each of them must have a name that starts with hotpot