summaryrefslogtreecommitdiffstats
path: root/server/xml.server.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 /server/xml.server.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 'server/xml.server.php')
-rw-r--r--server/xml.server.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/server/xml.server.php b/server/xml.server.php
index 957f212b..455c598a 100644
--- a/server/xml.server.php
+++ b/server/xml.server.php
@@ -46,7 +46,7 @@ header("Content-Disposition: attachment; filename=information.xml");
if (!Config::get('access_control')) {
ob_end_clean();
debug_event('Access Control','Error Attempted to use XML API with Access Control turned off','3');
- echo xmlData::error('501',_('Access Control not Enabled'));
+ echo xmlData::error('501', T_('Access Control not Enabled'));
exit;
}
@@ -57,7 +57,7 @@ if (!Config::get('access_control')) {
if (!vauth::session_exists('api', $_REQUEST['auth']) AND $_REQUEST['action'] != 'handshake' AND $_REQUEST['action'] != 'ping') {
debug_event('Access Denied','Invalid Session attempt to API [' . $_REQUEST['action'] . ']','3');
ob_end_clean();
- echo xmlData::error('401',_('Session Expired'));
+ echo xmlData::error('401', T_('Session Expired'));
exit();
}
@@ -68,7 +68,7 @@ $username = ($_REQUEST['action'] == 'handshake' || $_REQUEST['action'] == 'ping'
if (!Access::check_network('init-api',$username,'5')) {
debug_event('Access Denied','Unauthorized access attempt to API [' . $_SERVER['REMOTE_ADDR'] . ']', '3');
ob_end_clean();
- echo xmlData::error('403',_('Unauthorized access attempt to API - ACL Error'));
+ echo xmlData::error('403', T_('Unauthorized access attempt to API - ACL Error'));
exit();
}
@@ -99,4 +99,4 @@ foreach ($methods as $method) {
// If we manage to get here, we still need to hand out an XML document
ob_end_clean();
-echo xmlData::error('405',_('Invalid Request'));
+echo xmlData::error('405', T_('Invalid Request'));