includes/clientside/static/login.js
changeset 899 df88cedf0995
parent 887 cb96d038baff
child 907 44851d7e9bda
--- a/includes/clientside/static/login.js	Sat Apr 11 22:32:45 2009 -0400
+++ b/includes/clientside/static/login.js	Sun Apr 12 19:24:33 2009 -0400
@@ -991,10 +991,14 @@
   switch ( response.error_code )
   {
     default:
-      var ls = $lang.get('user_err_' + response.error_code);
-      if ( ls == 'user_err_' + response.error_code )
-        // Adding response here allows language strings to utilize additional information passed from the error packet
-        ls = $lang.get(response.error_code, response);
+      eval(setHook('ajax_login_process_error'));
+      if ( !ls )
+      {
+        var ls = $lang.get('user_err_' + response.error_code);
+        if ( ls == 'user_err_' + response.error_code )
+          // Adding response here allows language strings to utilize additional information passed from the error packet
+          ls = $lang.get(response.error_code, response);
+      }
       
       return ls;
       break;