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(__('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,