From 23a59c028989273dc3c26ce3f7f342e4bb0c04c2 Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Thu, 28 Oct 2021 23:18:49 +0200 Subject: [PATCH] cosmetics --- _admin.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/_admin.php b/_admin.php index 54ce2ed..d6cb0ed 100644 --- a/_admin.php +++ b/_admin.php @@ -119,10 +119,10 @@ class tweakStoresBehaviors '

' . sprintf(__('Generated code for module : %s'), html::escapeHTML($_POST['buildxml_id'])) . '

'; if (!empty(tweakStores::$failed)) { - echo '

' . sprintf(__('Failed to parse XML code: %s'), implode(', ', tweakStores::$failed)) . '

'; + echo '

' . sprintf(__('Failed to parse XML code: %s'), implode(', ', tweakStores::$failed)) . '

'; } if (!empty(tweakStores::$notice)) { - echo '

' . sprintf(__('Code is not fully filled: %s'), implode(', ', tweakStores::$notice)) . '

'; + echo '

' . sprintf(__('Code is not fully filled: %s'), implode(', ', tweakStores::$notice)) . '

'; } if (!empty($xml_content)) { if (empty(tweakStores::$failed) && empty(tweakStores::$notice)) { @@ -131,8 +131,10 @@ class tweakStoresBehaviors echo '
' . form::textArea('gen_xml', 165, 14, html::escapeHTML(str_replace('><', ">\n<", $xml_content)), 'maximal') . '
'; - if (!empty($file_pattern) && $modules[$_POST['buildxml_id']]['root_writable'] && $core->auth->isSuperAdmin()) { - + if (empty(tweakStores::$failed) + && $modules[$_POST['buildxml_id']]['root_writable'] + && $core->auth->isSuperAdmin() + ) { echo '

' . form::password(['your_pwd', 'your_pwd2'], 20, 255,