From 0777f491e551cd92c478fc51af0e5c46fd4c5f79 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andreas=20=C3=85kre=20Solberg?= <andreas.solberg@uninett.no>
Date: Fri, 16 Sep 2011 10:29:14 +0000
Subject: [PATCH] Improve DiscoJuice Feed debug view

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2900 44740490-163a-0410-bde0-09ae8108e29a
---
 modules/discojuice/www/feed.php | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/modules/discojuice/www/feed.php b/modules/discojuice/www/feed.php
index 8241ed6af..41066efa9 100644
--- a/modules/discojuice/www/feed.php
+++ b/modules/discojuice/www/feed.php
@@ -1,6 +1,5 @@
 <?php
 
-
 #sleep(2);
 
 $feed = new sspmod_discojuice_Feed();
@@ -15,16 +14,18 @@ if (!empty($_REQUEST['refresh'])) {
 
 
 
+
+
 if (!empty($_REQUEST['debug'])) {
+	
 
 	header('Content-Type: text/plain; charset=utf-8');
-	print_r($data);
-	
+	print_r(json_decode($data, 'utf-8'));
+	exit;
 }
 
 header('Content-Type: application/json; charset=utf-8');
 	
-
 if(isset($_REQUEST['callback'])) {
 	echo $_REQUEST['callback'] . '(' . $data . ');';
 } else {
-- 
GitLab