# HG changeset patch # User Zoe Hong # Date 1429621219 -7200 # Node ID 4d59439c8b46636119d1b6c5c4740cf16d5e9785 # Parent 26ed9d1d695701a697051028d972a310fc50a535 New: get user name from LGService by sessionId diff -r 26ed9d1d6957 -r 4d59439c8b46 check_sections_details.php --- a/check_sections_details.php Tue Apr 21 14:53:09 2015 +0200 +++ b/check_sections_details.php Tue Apr 21 15:00:19 2015 +0200 @@ -100,7 +100,7 @@ $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 = $user_info['userName']; + $current_editor = (string)$user_info['userName']; } else { // test locally @@ -173,7 +173,7 @@