From 73f20aa03baeb31cce486708ff00e935e8c8dde3 Mon Sep 17 00:00:00 2001 From: Inaki Date: Sat, 10 Apr 2010 15:24:55 +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 856a3ee9525..37d82449daa 100644 --- a/auth/cas/auth.php +++ b/auth/cas/auth.php @@ -773,9 +773,9 @@ if ( !is_object($PHPCAS_CLIENT) ) { $updateuser->id = $user->id; $updateuser->auth = 'cas'; if (update_record('user', $updateuser)) { - echo "\t"; print_string('auth_dbreviveser', 'auth', array($user->username, $user->id)); echo "\n"; + echo "\t"; print_string('auth_dbreviveduser', 'auth', array($user->username, $user->id)); echo "\n"; } else { - echo "\t"; print_string('auth_dbreviveusererror', 'auth', $user->username); echo "\n"; + echo "\t"; print_string('auth_dbrevivedusererror', 'auth', $user->username); echo "\n"; } } commit_sql(); diff --git a/auth/db/auth.php b/auth/db/auth.php index 7a859993249..fb3c2d23565 100644 --- a/auth/db/auth.php +++ b/auth/db/auth.php @@ -364,7 +364,7 @@ class auth_plugin_db extends auth_plugin_base { if ($old_user = get_record('user', 'username', $user->username, 'deleted', 1, 'mnethostid', $user->mnethostid)) { $user->id = $old_user->id; set_field('user', 'deleted', 0, 'username', $user->username); - echo "\t"; print_string('auth_dbreviveuser', 'auth', array(stripslashes($user->username), $user->id)); echo "\n"; + echo "\t"; print_string('auth_dbreviveduser', 'auth', array(stripslashes($user->username), $user->id)); echo "\n"; } elseif ($id = insert_record ('user',$user)) { // it is truly a new user echo "\t"; print_string('auth_dbinsertuser','auth',array(stripslashes($user->username), $id)); echo "\n"; // if relevant, tag for password generation diff --git a/auth/ldap/auth.php b/auth/ldap/auth.php index bdec6a05777..91af1d7a305 100644 --- a/auth/ldap/auth.php +++ b/auth/ldap/auth.php @@ -723,9 +723,9 @@ class auth_plugin_ldap extends auth_plugin_base { $updateuser->id = $user->id; $updateuser->auth = 'ldap'; if (update_record('user', $updateuser)) { - echo "\t"; print_string('auth_dbreviveser', 'auth', array($user->username, $user->id)); echo "\n"; + echo "\t"; print_string('auth_dbreviveduser', 'auth', array($user->username, $user->id)); echo "\n"; } else { - echo "\t"; print_string('auth_dbreviveusererror', 'auth', $user->username); echo "\n"; + echo "\t"; print_string('auth_dbrevivedusererror', 'auth', $user->username); echo "\n"; } } commit_sql();