From 1e2b3eb2890db9ff90bcf4dcf5ddc6160462cd21 Mon Sep 17 00:00:00 2001 From: "vincent@cubedesigners.com" Date: Tue, 27 Jul 2021 13:12:34 +0000 Subject: [PATCH] wip #4614 @0:25 --- inc/ws/Controlleur/class.ws.services.php | 26 ++++++++++++------- .../html5/master/class.ws.html5.links.php | 3 ++- 2 files changed, 19 insertions(+), 10 deletions(-) diff --git a/inc/ws/Controlleur/class.ws.services.php b/inc/ws/Controlleur/class.ws.services.php index 32eeb29a3..7d6682dec 100644 --- a/inc/ws/Controlleur/class.ws.services.php +++ b/inc/ws/Controlleur/class.ws.services.php @@ -1379,15 +1379,23 @@ class wsServices extends cubeFlashGateway public static function yslSurvey() { global $core; - $c = $core->con->openCursor('ysl_survey'); - $c->fluidbook_id = $_POST['fluidbook_id']; - $c->date = time(); - $c->page = $_POST['page']; - $c->rating = $_POST['rating']; - $c->suggestions = $_POST['suggestions']; - $c->country = $_POST['country']; - $c->function = $_POST['function']; - $c->insert(); + try { + $c = $core->con->openCursor('ysl_survey'); + $c->fluidbook_id = $_POST['Fluidbook_ID']; + $c->date = time(); + $c->page = $_POST['page']; + $c->rating = $_POST['rating']; + $c->suggestions = $_POST['feedback']; + $c->country = $_POST['country']; + $c->function = $_POST['function']; + $c->insert(); + $res = '1'; + } catch (Exception $e) { + $res = '0'; + } + ob_end_clean(); + header('Content-Type: text/plain'); + die($res); } public static function searchGFXDevice($gpu, $raw, $gfxVersion = 40) diff --git a/inc/ws/Util/html5/master/class.ws.html5.links.php b/inc/ws/Util/html5/master/class.ws.html5.links.php index 553bfff21..dfbf49144 100644 --- a/inc/ws/Util/html5/master/class.ws.html5.links.php +++ b/inc/ws/Util/html5/master/class.ws.html5.links.php @@ -2850,6 +2850,7 @@ class iframeLink extends wsHTML5Link return $to; } + } class articleLink extends normalLink @@ -2894,7 +2895,7 @@ class iframePopupLink extends normalLink public function keep() { - return false; + return true; } } -- 2.39.5