// Add a warning in welcome page for installer if use has already a previous version of PrestaShop installed #PSCFV-2161
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@15817 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -68,6 +68,17 @@ class InstallControllerHttpWelcome extends InstallControllerHttp
|
||||
*/
|
||||
public function display()
|
||||
{
|
||||
$this->can_upgrade = false;
|
||||
if (file_exists(_PS_ROOT_DIR_.'/config/settings.inc.php'))
|
||||
{
|
||||
@include_once(_PS_ROOT_DIR_.'/config/settings.inc.php');
|
||||
if (version_compare(_PS_VERSION_, _PS_INSTALL_VERSION_, '<'))
|
||||
{
|
||||
$this->can_upgrade = true;
|
||||
$this->ps_version = _PS_VERSION_;
|
||||
}
|
||||
}
|
||||
|
||||
$this->displayTemplate('welcome');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user