Skip to content

Commit

Permalink
Version 4.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
luigifab committed Feb 2, 2022
1 parent dc0c847 commit 767bce6
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,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.4.0 (01/01/2022)
- Current version: 4.4.1 (02/02/2022)
- Compatibility: OpenMage 19.x / 20.x / 21.x, PHP 7.2 / 7.3 / 7.4 / 8.0 / 8.1
- 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: 3 additions & 3 deletions src/app/code/community/Luigifab/Versioning/Helper/Data.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* Created S/03/12/2011
* Updated J/04/11/2021
* Updated J/30/12/2021
*
* Copyright 2011-2022 | Fabrice Creuzot (luigifab) <code~luigifab~fr>
* https://www.luigifab.fr/openmage/versioning
Expand Down Expand Up @@ -37,8 +37,8 @@ public function formatDate($date = null, $format = Zend_Date::DATETIME_LONG, $sh
return str_replace($object->date($date)->toString(Zend_Date::TIMEZONE), '', $object->date($date)->toString($format));
}

public function getHumanEmailAddress(string $email) {
return $this->escapeEntities(str_replace(['<', '>', ',', '"'], ['(', ')', ', ', ''], $email));
public function getHumanEmailAddress($email) {
return empty($email) ? '' : $this->escapeEntities(str_replace(['<', '>', ',', '"'], ['(', ')', ', ', ''], $email));
}

public function getHumanDuration($start, $end = null) {
Expand Down
14 changes: 7 additions & 7 deletions src/app/code/community/Luigifab/Versioning/Model/Scm/Git.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* Created S/03/12/2011
* Updated V/24/12/2021
* Updated D/26/12/2021
*
* Copyright 2011-2022 | Fabrice Creuzot (luigifab) <code~luigifab~fr>
* https://www.luigifab.fr/openmage/versioning
Expand Down Expand Up @@ -210,9 +210,9 @@ public function getCurrentDiff($from = null, $to = null, $dir = null, $excl = nu
$excl = explode(',', $excl);

if (is_executable('/usr/share/doc/git/contrib/diff-highlight/diff-highlight'))
$command .= ' | /usr/share/doc/git/contrib/diff-highlight/diff-highlight';

exec('LANG='.Mage::getSingleton('core/translate')->getLocale().'.utf8 '.$command, $lines);
exec('LANG='.Mage::getSingleton('core/translate')->getLocale().'.utf8 '.$command.' | /usr/share/doc/git/contrib/diff-highlight/diff-highlight', $lines);
else
exec('LANG='.Mage::getSingleton('core/translate')->getLocale().'.utf8 '.$command, $lines);

foreach ($lines as $i => $line) {

Expand Down Expand Up @@ -300,9 +300,9 @@ public function getCurrentDiffStatus($from = null, $to = null, $dir = null, $exc
$excl = explode(',', $excl);

if (is_executable('/usr/share/doc/git/contrib/diff-highlight/diff-highlight'))
$command .= ' | /usr/share/doc/git/contrib/diff-highlight/diff-highlight';

exec('LANG='.Mage::getSingleton('core/translate')->getLocale().'.utf8 '.$command, $lines);
exec('LANG='.Mage::getSingleton('core/translate')->getLocale().'.utf8 '.$command.' | /usr/share/doc/git/contrib/diff-highlight/diff-highlight', $lines);
else
exec('LANG='.Mage::getSingleton('core/translate')->getLocale().'.utf8 '.$command, $lines);

// Added (A), Copied (C), Deleted (D), Modified (M), Renamed (R), Type changed (T), Unmerged (U), Unknown (X), pairing Broken (B)
// C and R are always followed by a score (denoting the percentage of similarity between the source and target of the move or copy)
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/30/09/2021
* Updated V/24/12/2021
*
* Copyright 2011-2022 | Fabrice Creuzot (luigifab) <code~luigifab~fr>
* https://www.luigifab.fr/openmage/versioning
Expand All @@ -20,7 +20,7 @@
<config>
<modules>
<Luigifab_Versioning>
<version>4.4.0</version>
<version>4.4.1</version>
</Luigifab_Versioning>
</modules>
<global>
Expand Down
Loading

0 comments on commit 767bce6

Please sign in to comment.