Skip to content

Commit

Permalink
1.4.9
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrii-fediuk committed Jun 9, 2017
1 parent 171ffeb commit c4bb2c2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
7 changes: 2 additions & 5 deletions LineItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,13 +138,10 @@ static function buildLI($type, $price, $name = null, $tangible = false, $id = nu
* Опытным путём установил, что у description
* такое же ограничение по длине, как и у name.
*
* @param string $text
* @param string $s
* @return string
*/
protected static function adjustText($text) {
$text = strtr($text, ['<' => '«', '>' => '»']);
return mb_strlen($text) <= 128 ? $text : mb_substr($text, 0, 127) . '';
}
protected static function adjustText($s) {return df_chop(strtr($s, ['<' => '«', '>' => '»']), 128);}

/** @var string */
private static $P__ID = 'id';
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mage2pro/2checkout"
,"version": "1.4.8"
,"version": "1.4.9"
,"description": "The «2Checkout» payment extension for Magento 2."
,"type": "magento2-module"
,"homepage": "https://mage2.pro/c/extensions/2checkout"
Expand All @@ -11,7 +11,7 @@
"homepage": "https://mage2.pro/users/dmitry_fedyuk",
"role": "Developer"
}]
,"require": {"mage2pro/core": ">=2.5.10", "2checkout/2checkout-php": "*"}
,"require": {"mage2pro/core": ">=2.6.27", "2checkout/2checkout-php": "*"}
,"autoload": {"files": ["registration.php"], "psr-4": {"Dfe\\TwoCheckout\\": ""}}
,"keywords": [
"2Checkout"
Expand Down

0 comments on commit c4bb2c2

Please sign in to comment.