Skip to content

Commit

Permalink
Version 4.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
luigifab committed Jun 6, 2023
1 parent 504f840 commit 36e086b
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 17 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/minifier (IPv6 is r

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

- Current version: 4.5.0 (04/04/2023)
- Current version: 4.5.1 (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
14 changes: 10 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,25 @@
"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": "*",
"ext-curl": "*",
"ext-dom": "*"
"ext-dom": "*",
"ext-json": "*",
"ext-libxml": "*",
"ext-mbstring": "*",
"ext-zlib": "*"
},
"minimum-stability": "dev",
"extra": {
Expand Down
4 changes: 2 additions & 2 deletions src/app/code/community/Luigifab/Minifier/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 L/27/06/2011
* Updated V/03/03/2023
* Updated S/15/04/2023
*
* Copyright 2011-2023 | Fabrice Creuzot (luigifab) <code~luigifab~fr>
* https://github.com/luigifab/openmage-minifier
Expand All @@ -20,7 +20,7 @@
<config>
<modules>
<Luigifab_Minifier>
<version>4.5.0</version>
<version>4.5.1</version>
</Luigifab_Minifier>
</modules>
<global>
Expand Down
7 changes: 3 additions & 4 deletions src/app/code/community/Luigifab/Minifier/lib/minify.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* Created S/14/07/2018
* Updated D/06/11/2022
* Updated V/19/05/2023
*
* Copyright 2011-2023 | Fabrice Creuzot (luigifab) <code~luigifab~fr>
* https://github.com/luigifab/openmage-minifier
Expand All @@ -17,13 +17,12 @@
* GNU General Public License (GPL) for more details.
*/

if (PHP_SAPI != 'cli')
exit(-1);

chdir(dirname($argv[0], 7)); // root
error_reporting(E_ALL);
ini_set('display_errors', 1);

if (PHP_SAPI != 'cli')
exit(-1);
if (is_file('maintenance.flag') || is_file('upgrade.flag'))
exit(0);
if (is_file('app/bootstrap.php'))
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* Created S/14/04/2018
* Updated L/27/02/2023
* Updated V/02/06/2023
*
* Copyright 2011-2023 | Fabrice Creuzot (luigifab) <code~luigifab~fr>
* https://github.com/luigifab/openmage-minifier
Expand Down Expand Up @@ -47,6 +47,9 @@ $cache = (stripos($cache, 'redis') !== false) ? 'redis' : (empty($cache) ? 'file
<div class="header-right">
<p style="margin:0; font-size:11px; line-height:150%;">
<?php echo ucfirst($this->formatDate(null, 'full', true)) ?>
<?php if (Mage::getIsDeveloperMode()): ?>
(<?php echo date('H:i:s') ?> utc)
<?php endif ?>
// <a href="<?php echo $this->getUrl('*/system_account/index') ?>" style="color:white; text-decoration:none;">
<?php echo str_replace('<strong', '<strong style="text-decoration:underline;"', $this->__('Logged in as %s', $this->getUser()->getData('username'))) ?> (<?php echo $this->getUser()->getRole()->getData('role_name') ?>)
</a>
Expand All @@ -59,11 +62,14 @@ $cache = (stripos($cache, 'redis') !== false) ? 'redis' : (empty($cache) ? 'file
<strong>dev:on</strong> //
<?php endif ?>
<?php echo implode(' ', array_map(static function ($value) { return number_format($value, 2); }, sys_getloadavg())) ?> //
OpenMage <?php echo Mage::getOpenMageVersion() ?> //
<abbr>PHP</abbr> <?php echo implode('.', array_slice(preg_split('#\D#', PHP_VERSION), 0, 3)) ?> //
<abbr><?php echo $this->__('DB') ?></abbr> <?php echo implode('.', array_slice(preg_split('#\D#', $dbVersion), 0, 3)) ?> //
Session <?php echo $session ?> //
Cache <?php echo $cache ?>
OpenMage <?php echo Mage::getOpenMageVersion() ?>
// <abbr>PHP</abbr> <?php echo implode('.', array_slice(preg_split('#\D#', PHP_VERSION), 0, 3)) ?>
// <abbr><?php echo $this->__('DB') ?></abbr> <?php echo implode('.', array_slice(preg_split('#\D#', $dbVersion), 0, 3)) ?>
<?php if (Mage::getIsDeveloperMode()): ?>
(<?php echo Mage::getConfig()->getNode('global/resources/default_setup/connection/dbname') ?>)
<?php endif ?>
// Session <?php echo $session ?>
// Cache <?php echo $cache ?>
</p>
</div>
</div>

0 comments on commit 36e086b

Please sign in to comment.