From b8fc9582e601b73a0c09d6f5b7062a0b60e92bcc Mon Sep 17 00:00:00 2001 From: Inaki Date: Sat, 10 Apr 2010 15:26:39 +0000 Subject: [PATCH] auth cas/db/ldap: MDL-18689 Fix typos in auth/{cas,db,ldap}/auth.php Forward-ported from MOODLE_18_STABLE --- auth/cas/auth.php | 4 ++-- auth/db/auth.php | 2 +- auth/ldap/auth.php | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/auth/cas/auth.php b/auth/cas/auth.php index 7652e0dc266..5521f6a7b8a 100644 --- a/auth/cas/auth.php +++ b/auth/cas/auth.php @@ -753,9 +753,9 @@ if ( !is_object($PHPCAS_CLIENT) ) { $updateuser->id = $user->id; $updateuser->auth = 'ldap'; if ($DB->pdate_record('user', $updateuser)) { - echo "\t"; print_string('auth_dbreviveser', 'auth_db', array($user->username, $user->id)); echo "\n"; + echo "\t"; print_string('auth_dbreviveduser', 'auth_db', array($user->username, $user->id)); echo "\n"; } else { - echo "\t"; print_string('auth_dbreviveusererror', 'auth_db', $user->username); echo "\n"; + echo "\t"; print_string('auth_dbrevivedusererror', 'auth_db', $user->username); echo "\n"; } } } else { diff --git a/auth/db/auth.php b/auth/db/auth.php index 57c1ebf75f3..cc312a846d7 100644 --- a/auth/db/auth.php +++ b/auth/db/auth.php @@ -363,7 +363,7 @@ class auth_plugin_db extends auth_plugin_base { if ($old_user = $DB->get_record('user', array('username'=>$user->username, 'deleted'=>1, 'mnethostid'=>$user->mnethostid))) { $user->id = $old_user->id; $DB->set_field('user', 'deleted', 0, array('username'=>$user->username)); - echo "\t"; print_string('auth_dbreviveuser', 'auth_db', array($user->username, $user->id)); echo "\n"; + echo "\t"; print_string('auth_dbreviveduser', 'auth_db', array($user->username, $user->id)); echo "\n"; //TODO - username required to use PARAM_USERNAME before inserting into user table (MDL-16919) } elseif ($id = $DB->insert_record ('user',$user)) { // it is truly a new user diff --git a/auth/ldap/auth.php b/auth/ldap/auth.php index e92af769ac8..86ec4bbc55b 100644 --- a/auth/ldap/auth.php +++ b/auth/ldap/auth.php @@ -680,9 +680,9 @@ class auth_plugin_ldap extends auth_plugin_base { $updateuser->id = $user->id; $updateuser->auth = 'ldap'; if ($DB->pdate_record('user', $updateuser)) { - echo "\t"; print_string('auth_dbreviveser', 'auth_db', array($user->username, $user->id)); echo "\n"; + echo "\t"; print_string('auth_dbreviveduser', 'auth_db', array($user->username, $user->id)); echo "\n"; } else { - echo "\t"; print_string('auth_dbreviveusererror', 'auth_db', $user->username); echo "\n"; + echo "\t"; print_string('auth_dbrevivedusererror', 'auth_db', $user->username); echo "\n"; } } } else { -- 2.43.0