auth cas/db/ldap: MDL-18689 Fix typos in auth/{cas,db,ldap}/auth.php
authorInaki <iarenuno@eteo.mondragon.edu>
Sat, 10 Apr 2010 15:26:39 +0000 (15:26 +0000)
committerInaki <iarenuno@eteo.mondragon.edu>
Sat, 10 Apr 2010 15:26:39 +0000 (15:26 +0000)
Forward-ported from MOODLE_18_STABLE

auth/cas/auth.php
auth/db/auth.php
auth/ldap/auth.php

index 7652e0d..5521f6a 100644 (file)
@@ -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 {
index 57c1ebf..cc312a8 100644 (file)
@@ -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
index e92af76..86ec4bb 100644 (file)
@@ -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 {