Skip to content

Commit

Permalink
Replace links with build article
Browse files Browse the repository at this point in the history
  • Loading branch information
Quetzacoalt91 committed Jun 14, 2019
1 parent 29aebe0 commit ea343fc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 21 deletions.
2 changes: 1 addition & 1 deletion autoupgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ public function hookDashboardZoneOne($params)

$this->context->smarty->assign([
'ignore_link' => Context::getContext()->link->getAdminLink('AdminSelfUpgrade') . '&ignorePhpOutdated=1',
'learn_more_link' => $upgradeNotice,
'learn_more_link' => 'http://build.prestashop.com/news/announcing-end-of-support-for-obsolete-php-versions/',
]);

return $this->context->smarty->fetch($this->local_path.'views/templates/hook/dashboard_zone_one.tpl');
Expand Down
21 changes: 2 additions & 19 deletions classes/UpgradeSelfCheck.php
Original file line number Diff line number Diff line change
Expand Up @@ -382,29 +382,12 @@ private function checkModuleVersion()

/**
* Check current PHP version is supported.
* Returns an URL if unmaintained.
*
* @return bool|string
* @return bool
*/
private function checkPhpVersionNeedsUpgrade()
{
if (PHP_VERSION_ID >= self::RECOMMENDED_PHP_VERSION) {
return false;
}

// Informative only. These links will be declared in the translation files.
/*$articles = [
'de' => 'https://www.prestashop.com/de/blog/php-5-6-Sicherheit-Online-Shop',
'en' => 'https://www.prestashop.com/en/blog/php-5-6-online-store-security',
'es' => 'https://www.prestashop.com/es/blog/php-5-6-seguridad-tienda-prestashop',
'fr' => 'https://www.prestashop.com/fr/blog/php-5-6-securite-boutique-en-ligne',
'it' => 'https://www.prestashop.com/it/blog/php-5-6-sicurezza-shop-on-line',
'nl' => 'https://www.prestashop.com/nl/blog/php-5-6-veiligheid-webwinkel',
'pl' => 'https://www.prestashop.com/pl/blog/php-5-6-bezpieczenstwo-sklepu-internetowego',
'pt' => 'https://www.prestashop.com/pt/blog/php-5-6-seguranca-loja-on-line',
];*/

return 'https://www.prestashop.com/en/blog/php-5-6-online-store-security';
return PHP_VERSION_ID < self::RECOMMENDED_PHP_VERSION;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion views/templates/block/checklist.twig
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@
{{ 'PrestaShop requirements are satisfied.'|trans }}
{% else %}
{{ 'PrestaShop requirements are not satisfied. [1]See details[/1] or [2]ignore[/2].'|trans({
'[1]': '<a href="' ~ informationsLink ~'">',
'[1]': '<a href="http://build.prestashop.com/news/announcing-end-of-support-for-obsolete-php-versions/">',
'[/1]': '</a>',
'[2]': '<a href="' ~ currentIndex ~ '&token=' ~ token ~ '&ignorePsRequirements=1">',
'[/2]': '</a>',
Expand Down

0 comments on commit ea343fc

Please sign in to comment.