summaryrefslogtreecommitdiffstats
path: root/server/xml.server.php
diff options
context:
space:
mode:
authorPaul Arthur <paul.arthur@flowerysong.com>2013-01-25 19:54:11 -0500
committerPaul Arthur <paul.arthur@flowerysong.com>2013-01-25 19:54:11 -0500
commit9c28ed5ad1adf15f868d181b9cfca26a801550ad (patch)
treee179bafda6d487273718f7a7f16ba5687446e669 /server/xml.server.php
parent7ea41a0029c903f807ce0ce3b7536bb60ac81a19 (diff)
downloadampache-9c28ed5ad1adf15f868d181b9cfca26a801550ad.tar.gz
ampache-9c28ed5ad1adf15f868d181b9cfca26a801550ad.tar.bz2
ampache-9c28ed5ad1adf15f868d181b9cfca26a801550ad.zip
Consistently use _ in two-word class names
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 bd13af57..4dfc124d 100644
--- a/server/xml.server.php
+++ b/server/xml.server.php
@@ -40,7 +40,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', T_('Access Control not Enabled'));
+ echo XML_Data::error('501', T_('Access Control not Enabled'));
exit;
}
@@ -51,7 +51,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', T_('Session Expired'));
+ echo XML_Data::error('401', T_('Session Expired'));
exit();
}
@@ -62,7 +62,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', T_('Unauthorized access attempt to API - ACL Error'));
+ echo XML_Data::error('403', T_('Unauthorized access attempt to API - ACL Error'));
exit();
}
@@ -93,4 +93,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', T_('Invalid Request'));
+echo XML_Data::error('405', T_('Invalid Request'));