diff --git a/admin-dev/themes/default/template/controllers/login/content.tpl b/admin-dev/themes/default/template/controllers/login/content.tpl index bb455f992..b1cfff216 100755 --- a/admin-dev/themes/default/template/controllers/login/content.tpl +++ b/admin-dev/themes/default/template/controllers/login/content.tpl @@ -48,7 +48,7 @@ {/if}

{$shop_name}

- {if !isset($wrong_folder_name)} + {if !isset($wrong_folder_name) && !isset($wrong_install_name)}
@@ -101,10 +101,10 @@

{l s='For security reasons, you cannot connect to the Back Office until after you have:'}

    -
  • {l s='deleted the /install folder'}
  • -
  • {l s='renamed the /admin folder (e.g. /admin%d)' sprintf=$randomNb}
  • + {if isset($wrong_install_name) && $wrong_install_name == true}
  • {l s='deleted the /install folder'}
  • {/if} + {if isset($wrong_folder_name) && $wrong_folder_name == true}
  • {l s='renamed the /admin folder (e.g. /admin%d)' sprintf=$randomNb}
  • {/if}
-

{l s='Please then access this page by the new URL (e.g. http://www.yoursite.com/admin%d)' sprintf=$randomNb}

+ {if isset($wrong_folder_name) && $wrong_folder_name == true}

{l s='Please then access this page by the new URL (e.g. http://www.yoursite.com/admin%d)' sprintf=$randomNb}

{/if}
{/if}
diff --git a/controllers/admin/AdminLoginController.php b/controllers/admin/AdminLoginController.php index d98506b38..3329fb75a 100755 --- a/controllers/admin/AdminLoginController.php +++ b/controllers/admin/AdminLoginController.php @@ -69,7 +69,7 @@ class AdminLoginControllerCore extends AdminController } if (file_exists(_PS_ADMIN_DIR_.'/../install')) - $this->context->smarty->assign('wrong_folder_name', true); + $this->context->smarty->assign('wrong_install_name', true); if (file_exists(_PS_ADMIN_DIR_.'/../admin')) { $rand = sprintf('%04d', rand(0, 9999));