MDL-21189 yui2/3 combo loader implemented - yay! admin settings in the next commit; yui libs stored in more standard locations

This commit is contained in:
Petr Skoda 2009-12-25 22:37:04 +00:00
parent 60f2c8666a
commit aa42314ded
842 changed files with 137 additions and 12 deletions

View file

@ -45,6 +45,18 @@ function min_optional_param($name, $default, $type) {
$value = $_GET['amp;'.$name];
}
return min_clean_param($value, $type);
}
/**
* Minimalistic parameter cleaning function.
* Can not use optional param because moodlelib.php is not loaded yet
* @param string $name
* @param mixed $default
* @param string $type
* @return mixed
*/
function min_clean_param($value, $type) {
switch($type) {
case 'RAW': break;
case 'INT': $value = (int)$value;
@ -59,5 +71,4 @@ function min_optional_param($name, $default, $type) {
}
return $value;
}
}