Skip to content

Commit

Permalink
Merge pull request #191 from PrestaShop/dev
Browse files Browse the repository at this point in the history
Deploying v4.4.2 of autoupgrade
  • Loading branch information
Quetzacoalt91 authored Nov 19, 2018
2 parents 900017b + e6b6e39 commit d95d936
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 11 deletions.
7 changes: 6 additions & 1 deletion Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,12 @@ Note they are unsupported and we strongly recommend you to upgrade your PHP vers
# Installation

All versions can be found in the [releases list](https://github.com/PrestaShop/autoupgrade/releases).
Zip archives can be directly uploaded on your module page.

## Create a module from source code
* Clone (`git clone https://github.com/PrestaShop/autoupgrade.git`) or [download](https://github.com/PrestaShop/autoupgrade/archive/master.zip) the source code. You can also download a release **Source code** ([ex. v4.4.1](https://github.com/PrestaShop/autoupgrade/archive/v4.4.1.zip)). If you download a source code archive, you need extract the file and rename the extracted folder to **autoupgrade**
* Enter into folder **autoupgrade** and run the command `composer install` ([composer](https://getcomposer.org/)).
* Create a new zip file of **autoupgrade** folder
* Now you can upload into your module pages

# Running an upgrade on PrestaShop

Expand Down
2 changes: 1 addition & 1 deletion autoupgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function __construct()
$this->name = 'autoupgrade';
$this->tab = 'administration';
$this->author = 'PrestaShop';
$this->version = '4.4.1';
$this->version = '4.4.2';
$this->need_instance = 1;

$this->bootstrap = true;
Expand Down
5 changes: 0 additions & 5 deletions classes/UpgradePage.php
Original file line number Diff line number Diff line change
Expand Up @@ -182,11 +182,6 @@ public function display($ajaxResult)
}

$templateData = array(
'configuration' => array(
'PS_SHOW_NEW_ORDERS' => Configuration::get('PS_SHOW_NEW_ORDERS', null, null, null, 1),
'PS_SHOW_NEW_CUSTOMERS' => Configuration::get('PS_SHOW_NEW_CUSTOMERS', null, null, null, 1),
'PS_SHOW_NEW_MESSAGES' => Configuration::get('PS_SHOW_NEW_MESSAGES', null, null, null, 1),
),
'psBaseUri' => __PS_BASE_URI__,
'translationDomain' => $translationDomain,
'jsParams' => $this->getJsParams($ajaxResult),
Expand Down
2 changes: 1 addition & 1 deletion config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<module>
<name>autoupgrade</name>
<displayName><![CDATA[1-Click Upgrade]]></displayName>
<version><![CDATA[4.4.1]]></version>
<version><![CDATA[4.4.2]]></version>
<description><![CDATA[Provides an automated method to upgrade your shop to the latest version of PrestaShop.]]></description>
<author><![CDATA[PrestaShop]]></author>
<tab><![CDATA[administration]]></tab>
Expand Down
3 changes: 0 additions & 3 deletions views/templates/main.twig
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@

<script>
var show_new_orders = {{ configuration.PS_SHOW_NEW_ORDERS }};
var show_new_customers = {{ configuration.PS_SHOW_NEW_CUSTOMERS }};
var show_new_messages = {{ configuration.PS_SHOW_NEW_MESSAGES }};
var jQueryVersionPS = parseInt($().jquery.replace(/\./g, ""));
</script>
<script src="{{ psBaseUri }}modules/autoupgrade/js/jquery-1.6.2.min.js"></script>
Expand Down

0 comments on commit d95d936

Please sign in to comment.