mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
MDL-21951 reverting changes in moodlelib.php, most probably forgotten debug stuff
This commit is contained in:
parent
866354a905
commit
c7f4e3e246
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user