diff check_sections_details.php @ 7:3abf39f0eb46

bug fixed: sessionId from LGServices
author Zoe Hong <zhong@mpiwg-berlin.mpg.de>
date Wed, 27 May 2015 14:32:34 +0200
parents 4d59439c8b46
children 7258ccd8ef7d
line wrap: on
line diff
--- a/check_sections_details.php	Tue Apr 21 15:00:19 2015 +0200
+++ b/check_sections_details.php	Wed May 27 14:32:34 2015 +0200
@@ -97,7 +97,10 @@
 if (isset($_GET['sessionId'])) {
 	// check if get session info from LGService, to get username as editor
 	$session_id = $_GET['sessionId'];
-	$lg_url = "http://localgazetteers-dev/LGServices/rest/utils/getUser?sessionId=".$session_id; // url to get username from LGService
+
+	global $lgserver_url;
+	$lg_url = $lgserver_url."rest/utils/getUser?sessionId=".$session_id; // url to get username from LGService
+	//$lg_url = "http://localgazetteers-dev/LGServices/rest/utils/getUser?sessionId=".$session_id; // url to get username from LGService
     $output = file_get_contents($lg_url);
     $user_info = json_decode($output, true);
 	$current_editor = (string)$user_info['userName'];