MDL-21951 reverting changes in moodlelib.php, most probably forgotten debug stuff

This commit is contained in:
Petr Skoda 2010-04-09 09:43:21 +00:00
parent 866354a905
commit c7f4e3e246

View File

@ -439,6 +439,7 @@ function optional_param($parname, $default=NULL, $type=PARAM_CLEAN) {
} else {
return $default;
}
return clean_param($param, $type);
}
@ -519,6 +520,7 @@ function validate_param($param, $type, $allownull=NULL_NOT_ALLOWED, $debuginfo='
function clean_param($param, $type) {
global $CFG;
if (is_array($param)) { // Let's loop
$newparam = array();
foreach ($param as $key => $value) {
@ -4881,7 +4883,6 @@ function send_password_change_confirmation_email($user) {
$data->lastname = $user->lastname;
$data->sitename = format_string($site->fullname);
$data->link = $CFG->httpswwwroot .'/login/forgot_password.php?p='. $user->secret .'&s='. urlencode($user->username);
debug($data);
$data->admin = generate_email_signoff();
$message = get_string('emailpasswordconfirmation', '', $data);
@ -9637,16 +9638,3 @@ function mnet_get_idp_jump_url($user) {
}
return $mnetjumps[$user->mnethostid];
}
function echo_fb($var, $label='info') {
require_once('FirePHPCore/FirePHP.class.php');
$firephp = FirePHP::getInstance(true);
$firephp->log($var, $label);
}
function debug($text) {
$str = time();
$str .= var_export($text, true);
$str .= "\n==\n";
file_put_contents('/Library/WebServer/moodledata/output.log', $str, FILE_APPEND);
}