summaryrefslogtreecommitdiffstats
path: root/login.php
diff options
context:
space:
mode:
authorPaul Arthur <flowerysong00@yahoo.com>2012-03-31 17:01:04 -0400
committerPaul Arthur <paul.arthur@flowerysong.com>2012-04-12 21:13:29 -0400
commitf65076b93d91fe9718cf9bef37638d64290b9f28 (patch)
tree40fbc65baffab34971d8c7b685ef9c99e0f4014f /login.php
parent15457b16f17a141fa76a3b9882892362b601787c (diff)
downloadampache-f65076b93d91fe9718cf9bef37638d64290b9f28.tar.gz
ampache-f65076b93d91fe9718cf9bef37638d64290b9f28.tar.bz2
ampache-f65076b93d91fe9718cf9bef37638d64290b9f28.zip
Switch from _() to T_()
Even if we move away from php-gettext in the future, it's easy to write a quick T_() as a simple wrapper; it's not so easy to rewrite PHP to allow redeclaration of a function.
Diffstat (limited to 'login.php')
-rw-r--r--login.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/login.php b/login.php
index e7611611..893d98e1 100644
--- a/login.php
+++ b/login.php
@@ -90,14 +90,14 @@ if (($_POST['username'] && $_POST['password']) ||
}
else {
debug_event('Login', scrub_out($username) . ' attempted to login and failed', '1');
- Error::add('general', _('Error Username or Password incorrect, please try again'));
+ Error::add('general', T_('Error Username or Password incorrect, please try again'));
}
$user = User::get_from_username($username);
if ($user->disabled) {
$auth['success'] = false;
- Error::add('general', _('User Disabled please contact Admin'));
+ Error::add('general', T_('User Disabled please contact Admin'));
debug_event('Login', scrub_out($username) . ' is disabled and attempted to login', '1');
} // if user disabled
elseif (Config::get('prevent_multiple_logins')) {
@@ -105,7 +105,7 @@ if (($_POST['username'] && $_POST['password']) ||
$current_ip = inet_pton($_SERVER['REMOTE_ADDR']);
if ($current_ip && ($current_ip != $session_ip)) {
$auth['success'] = false;
- Error::add('general',_('User Already Logged in'));
+ Error::add('general', T_('User Already Logged in'));
debug_event('Login', scrub_out($username) . ' is already logged in from ' . $session_ip . ' and attempted to login from ' . $current_ip, '1');
} // if logged in multiple times
} // if prevent multiple logins
@@ -126,7 +126,7 @@ if (($_POST['username'] && $_POST['password']) ||
}
else {
$auth['success'] = false;
- Error::add('general', _('Unable to create local account'));
+ Error::add('general', T_('Unable to create local account'));
}
} // End if auto_create