From 3abe83b83d131d522861fc2d1dca007a9df14ac9 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 29 Aug 2019 13:41:42 +0200 Subject: [PATCH] FIX Css was saved on wrong website. --- htdocs/website/index.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/htdocs/website/index.php b/htdocs/website/index.php index ae07c4c0c0c..1492a40a472 100644 --- a/htdocs/website/index.php +++ b/htdocs/website/index.php @@ -258,11 +258,11 @@ $manifestjsoncontentdefault.= '{ */ // Protections -if ($action == 'updatesource' && (GETPOST('refreshsite_x') || GETPOST('refreshsite.x') || GETPOST('refreshpage_x') || GETPOST('refreshpage.x'))) +if (GETPOST('refreshsite') || GETPOST('refreshsite_x') || GETPOST('refreshsite.x') || GETPOST('refreshpage') || GETPOST('refreshpage_x') || GETPOST('refreshpage.x')) { - $action = 'preview'; // To avoid to update another page or another site when we click on button to select another site or page. + $action = 'preview'; // To avoid to make an action on another page or another site when we click on button to select another site or page. } -if (GETPOST('refreshsite', 'alpha')) // If we change the site, we reset the pageid and cancel addsite action. +if (GETPOST('refreshsite', 'alpha') || GETPOST('refreshsite.x', 'alpha') || GETPOST('refreshsite_x', 'alpha')) // If we change the site, we reset the pageid and cancel addsite action. { $pageid=0; if ($action == 'addsite') $action = 'preview';