summaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
Diffstat (limited to 'server')
-rw-r--r--server/ajax.server.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/ajax.server.php b/server/ajax.server.php
index 65fbc6dd..e340a955 100644
--- a/server/ajax.server.php
+++ b/server/ajax.server.php
@@ -79,8 +79,8 @@ switch ($action) {
$GLOBALS['user']->update_preference($pref_id,$_GET['type']);
/* Now Replace the text as you should */
- $ajax_url = conf('web_path') . '/server/ajax.server.php';
- $required_info = "&user_id=" . $GLOBALS['user']->id . "&sessid=" . session_id();
+ $ajax_url = conf('ajax_url');
+ $required_info = conf('ajax_info');
${$_GET['type']} = 'id="pt_active"';
ob_start();
require_once(conf('prefix') . '/templates/show_localplay_switch.inc.php');