diff --git a/e107_core/controllers/system/xup.php b/e107_core/controllers/system/xup.php
index e5c71fa72..6b36f5d9c 100644
--- a/e107_core/controllers/system/xup.php
+++ b/e107_core/controllers/system/xup.php
@@ -14,6 +14,7 @@
* $Author: e107coders $
*/
+e107::coreLan('user');
class core_system_xup_controller extends eController
{
@@ -82,11 +83,11 @@ class core_system_xup_controller extends eController
public function actionTest()
{
- echo '
Social Login Tester
';
+ echo ''.LAN_XUP_ERRM_07.'
';
if(getperms('0'))
{
- echo e107::getMessage()->addError("Please logout of e107 before testing the new-user login/signup procedure.")->render();
+ echo e107::getMessage()->addError(LAN_XUP_ERRM_08)->render();
return;
}
@@ -109,7 +110,7 @@ class core_system_xup_controller extends eController
}
- echo 'Logged in: '.(e107::getUser()->isUser() && !empty($profileData) ? 'true' : 'false');
+ echo ' '.LAN_XUP_ERRM_11.' '.(e107::getUser()->isUser() && !empty($profileData) ? 'true' : 'false');
$testUrl = SITEURL."?route=system/xup/test";
@@ -120,8 +121,8 @@ class core_system_xup_controller extends eController
if($var['enabled'] == 1)
{
echo ''.$key.'
";
}
@@ -129,7 +130,7 @@ class core_system_xup_controller extends eController
// print_a($var);
}
- echo '
Test logout';
+ echo '
'.LAN_XUP_ERRM_12.'';
/*
echo 'Facebook
';
diff --git a/e107_languages/English/lan_user.php b/e107_languages/English/lan_user.php
index d7a1fc758..1e00687a1 100644
--- a/e107_languages/English/lan_user.php
+++ b/e107_languages/English/lan_user.php
@@ -123,7 +123,12 @@ define("LAN_XUP_ERRM_03", "Log in Failed! Wrong provider.");
define("LAN_XUP_ERRM_04", "Signup failed! User already signed in.");
define("LAN_XUP_ERRM_05", "Signup failed! User already exists. Please use 'login' instead.");
define("LAN_XUP_ERRM_06", "Signup failed! Can't access user email - registration without an email is impossible.");
-
+define("LAN_XUP_ERRM_07", "Social Login Tester");
+define("LAN_XUP_ERRM_08", "Please logout of e107 before testing the new-user login/signup procedure.");
+define("LAN_XUP_ERRM_09", "Test login only with [x]");
+define("LAN_XUP_ERRM_10", "Test signup/login with [x]");
+define("LAN_XUP_ERRM_11", "Logged in:");
+define("LAN_XUP_ERRM_12", "Test logout");
// Error messages for when user data is missing. Done this way so that other code can override the default messages