summaryrefslogtreecommitdiffstats
path: root/server/ajax.server.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-07-23 02:10:27 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-07-23 02:10:27 +0000
commit84eca6a3d59fc591a7e28b3d7e0c11746dc837fc (patch)
tree837dd1a9051e787ff9bca6a7f928ac710ea639cd /server/ajax.server.php
parentb62f10549d421dfee1d9f4268522946f665ae11f (diff)
downloadampache-84eca6a3d59fc591a7e28b3d7e0c11746dc837fc.tar.gz
ampache-84eca6a3d59fc591a7e28b3d7e0c11746dc837fc.tar.bz2
ampache-84eca6a3d59fc591a7e28b3d7e0c11746dc837fc.zip
sync french translation, fixed ratings
Diffstat (limited to 'server/ajax.server.php')
-rw-r--r--server/ajax.server.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/server/ajax.server.php b/server/ajax.server.php
index 95376997..cc6ae332 100644
--- a/server/ajax.server.php
+++ b/server/ajax.server.php
@@ -215,10 +215,10 @@ switch ($action) {
/* Setting ratings */
case 'set_rating':
ob_start();
- $rating = new Rating($_REQUEST['object_id'],$_REQUEST['rating_type']);
- $rating->set_rating($_REQUEST['rating']);
- show_rating($_REQUEST['object_id'],$_REQUEST['rating_type']);
- $key = "rating_" . $_REQUEST['object_id'] . "_" . $_REQUEST['rating_type'];
+ $rating = new Rating($_GET['object_id'],$_GET['rating_type']);
+ $rating->set_rating($_GET['rating']);
+ Rating::show($_GET['object_id'],$_GET['rating_type']);
+ $key = "rating_" . $_GET['object_id'] . "_" . $_GET['rating_type'];
$results[$key] = ob_get_contents();
ob_end_clean();
echo xml_from_array($results);