Skip to content

Commit

Permalink
Version 4.5.2
Browse files Browse the repository at this point in the history
  • Loading branch information
luigifab committed Jun 6, 2023
1 parent 7f6735d commit db2d818
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 9 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ For more information, go to https://www.luigifab.fr/openmage/versioning (IPv6 is

This repository is a releases mirror. To install the module, please use the composer key available in the documentation.

- Current version: 4.5.1 (02/02/2023)
- Current version: 4.5.2 (06/06/2023)
- Compatibility: OpenMage 19.x / 20.x / 21.x, PHP 7.2 / 7.3 / 7.4 / 8.0 / 8.1 / 8.2
- Client compatibility: Firefox 36+, Chrome 32+, Opera 19+, Edge 16+, Safari 9+
- Translations: English (en), French (fr-FR/fr-CA), German (de), Italian (it), Portuguese (pt-PT/pt-BR), Spanish (es) / Chinese (zh), Czech (cs), Dutch (nl), Greek (el), Hungarian (hu), Japanese (ja), Polish (pl), Romanian (ro), Russian (ru), Slovak (sk), Turkish (tr), Ukrainian (uk)
Expand Down
6 changes: 5 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,18 @@
"type": "other",
"url": "https://gandi.link/f/4b904048"
},
{
"type": "other",
"url": "https://fr.tipeee.com/luigifab"
},
{
"type": "other",
"url": "https://ekwateur.fr/?parrain=EKW001147103"
}
],
"require": {
"php": ">=7.2.0",
"openmage/magento-lts": ">=19.4.0",
"openmage/magento-lts": ">=19.4.0 || main-dev || next-dev",
"symfony/polyfill-php80": "*",
"ext-mbstring": "*",
"ext-json": "*",
Expand Down
11 changes: 6 additions & 5 deletions src/app/code/community/Luigifab/Versioning/Model/Source/Type.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* Created M/27/12/2011
* Updated J/20/10/2022
* Updated L/24/04/2023
*
* Copyright 2011-2023 | Fabrice Creuzot (luigifab) <code~luigifab~fr>
* https://github.com/luigifab/openmage-versioning
Expand All @@ -26,13 +26,14 @@ public function toOptionArray() {
if (empty($this->_options)) {

$this->_options = [];
$config = Mage::getConfig()->getNode('global/models/versioning/adaptators')->asArray();
$help = Mage::helper('versioning');
$keys = Mage::getConfig()->getNode('global/models/versioning/adaptators')->asArray();

foreach ($config as $key) {
foreach ($keys as $key) {
$system = Mage::getSingleton($key);
$this->_options[$key] = ['value' => $key, 'label' => $system->isSoftwareInstalled() ?
Mage::helper('versioning')->__('%s (%s)', mb_strtoupper($system->getType()), $system->getSoftwareVersion()) :
Mage::helper('versioning')->__('%s (not available)', mb_strtoupper($system->getType()))];
$help->__('%s (%s)', strtoupper($system->getType()), $system->getSoftwareVersion()) :
$help->__('%s (not available)', strtoupper($system->getType()))];
}

ksort($this->_options);
Expand Down
4 changes: 2 additions & 2 deletions src/app/code/community/Luigifab/Versioning/etc/config.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
* Created S/03/12/2011
* Updated J/05/01/2023
* Updated V/03/03/2023
*
* Copyright 2011-2023 | Fabrice Creuzot (luigifab) <code~luigifab~fr>
* https://github.com/luigifab/openmage-versioning
Expand All @@ -20,7 +20,7 @@
<config>
<modules>
<Luigifab_Versioning>
<version>4.5.1</version>
<version>4.5.2</version>
</Luigifab_Versioning>
</modules>
<global>
Expand Down

0 comments on commit db2d818

Please sign in to comment.