From 1bb1e5beb730d75e4f7dba79cdba534839cc4733 Mon Sep 17 00:00:00 2001 From: Andrew Davis Date: Sun, 15 Aug 2010 06:26:16 +0000 Subject: [PATCH] rating MDL-23814 marking rate_ajax.php as being an ajax so the response should hopefully always be in json --- rating/rate_ajax.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rating/rate_ajax.php b/rating/rate_ajax.php index 5e1342f5e36..1c32c9df437 100644 --- a/rating/rate_ajax.php +++ b/rating/rate_ajax.php @@ -25,6 +25,8 @@ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ +define('AJAX_SCRIPT', true); + require_once('../config.php'); require_once('lib.php');