Skip to content

Commit

Permalink
feat: rename module
Browse files Browse the repository at this point in the history
  • Loading branch information
ga-devfront committed Jul 10, 2024
1 parent e94ddb6 commit 2f891dc
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 1-Click Upgrade
# Update assistant

![PHP tests](https://github.com/PrestaShop/autoupgrade/workflows/PHP%20tests/badge.svg)
![Upgrades](https://github.com/PrestaShop/autoupgrade/workflows/Upgrades/badge.svg)
Expand Down
2 changes: 1 addition & 1 deletion ajax-upgradetabconfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ function autoupgrade_init_container($callerFilePath)

// the following test confirm the directory exists
if (empty($_POST['dir'])) {
echo 'No admin directory provided (dir). 1-click upgrade cannot proceed.';
echo 'No admin directory provided (dir). Update assistant cannot proceed.';
exit(1);
}

Expand Down
4 changes: 2 additions & 2 deletions autoupgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public function __construct()
}
}

$this->displayName = $this->trans('1-Click Upgrade');
$this->displayName = $this->trans('Update assistant');
$this->description = $this->trans('Upgrade to the latest version of PrestaShop in a few clicks, thanks to this automated method.');

$this->ps_versions_compliancy = ['min' => '1.7.0.0', 'max' => _PS_VERSION_];
Expand Down Expand Up @@ -102,7 +102,7 @@ public function install()
$tab->id_parent = (int) Tab::getIdFromClassName('DEFAULT');

foreach (Language::getLanguages(false) as $lang) {
$tab->name[(int) $lang['id_lang']] = '1-Click Upgrade';
$tab->name[(int) $lang['id_lang']] = 'Update assistant';
}
if (!$tab->save()) {
return $this->_abortInstall($this->trans('Unable to create the "AdminSelfUpgrade" tab'));
Expand Down
4 changes: 2 additions & 2 deletions config.xml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?xml version="1.0" encoding="UTF-8" ?>
<module>
<name>autoupgrade</name>
<displayName><![CDATA[1-Click Upgrade]]></displayName>
<displayName><![CDATA[Update assistant]]></displayName>
<version><![CDATA[5.0.3]]></version>
<description><![CDATA[Upgrade to the latest version of PrestaShop in a few clicks, thanks to this automated method.]]></description>
<author><![CDATA[PrestaShop]]></author>
<tab><![CDATA[administration]]></tab>
<is_configurable>1</is_configurable>
<need_instance>1</need_instance>
</module>
</module>
4 changes: 2 additions & 2 deletions controllers/admin/AdminSelfUpgradeController.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,14 +139,14 @@ public function __construct()
self::$currentIndex = $_SERVER['SCRIPT_NAME'] . (($controller = Tools14::getValue('controller')) ? '?controller=' . $controller : '');

if (defined('_PS_ADMIN_DIR_')) {
// Check that the 1-click upgrade working directory is existing or create it
// Check that the Update assistant working directory is existing or create it
if (!file_exists($this->autoupgradePath) && !@mkdir($this->autoupgradePath)) {
$this->_errors[] = $this->trans('Unable to create the directory "%s"', [$this->autoupgradePath]);

return;
}

// Make sure that the 1-click upgrade working directory is writeable
// Make sure that the Update assistant working directory is writeable
if (!is_writable($this->autoupgradePath)) {
$this->_errors[] = $this->trans('Unable to write in the directory "%s"', [$this->autoupgradePath]);

Expand Down
2 changes: 1 addition & 1 deletion views/templates/block/upgradeButtonBlock.twig
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
</div>
<h4 style="margin-top: 0">{{ 'Please select your channel:'|trans({}) }}</h4>
<p>
{{ 'Channels are offering you different ways to perform an upgrade. You can either upload the new version manually or let the 1-Click Upgrade module download it for you.'|trans({}) }}<br>
{{ 'Channels are offering you different ways to perform an upgrade. You can either upload the new version manually or let the Update assistant module download it for you.'|trans({}) }}<br>
{{ 'The Alpha, Beta and Private channels give you the ability to upgrade to a non-official or unstable release (for testing purposes only).'|trans({}) }}<br>
{{ 'By default, you should use the "Minor release" channel which is offering the latest stable version available.'|trans({})|raw }}
</p>
Expand Down

0 comments on commit 2f891dc

Please sign in to comment.