Skip to content

Commit 2613378

Browse files
authored
Merge pull request #943 from magento-engcom/develop-prs
[EngCom] Public Pull Requests
2 parents ee6ee6e + f92c5fe commit 2613378

File tree

8 files changed

+14
-5
lines changed

8 files changed

+14
-5
lines changed

app/code/Magento/Backend/Block/Menu.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
*
1414
* @method \Magento\Backend\Block\Menu setAdditionalCacheKeyInfo(array $cacheKeyInfo)
1515
* @method array getAdditionalCacheKeyInfo()
16+
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
1617
*/
1718
class Menu extends \Magento\Backend\Block\Template
1819
{
@@ -381,7 +382,7 @@ public function renderNavigation($menu, $level = 0, $limit = 0, $colBrakes = [])
381382
$itemName = substr($menuId, strrpos($menuId, '::') + 2);
382383
$itemClass = str_replace('_', '-', strtolower($itemName));
383384

384-
if (count($colBrakes) && $colBrakes[$itemPosition]['colbrake']) {
385+
if (count($colBrakes) && $colBrakes[$itemPosition]['colbrake'] && $itemPosition != 1) {
385386
$output .= '</ul></li><li class="column"><ul role="menu">';
386387
}
387388

app/code/Magento/Bundle/view/base/templates/product/price/final_price.phtml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
<?php
1212
$idSuffix = $block->getIdSuffix() ? $block->getIdSuffix() : '';
1313
/** @var \Magento\Bundle\Pricing\Render\FinalPriceBox $block */
14-
$productId = $block->getSaleableItem()->getId();
14+
15+
1516
/** @var \Magento\Bundle\Pricing\Price\FinalPrice $finalPriceModel */
1617
$finalPriceModel = $block->getPrice();
1718
$minimalPrice = $finalPriceModel->getMinimalPrice();

app/code/Magento/Catalog/Model/ResourceModel/Product/Collection.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -863,6 +863,7 @@ public function addCategoryFilter(\Magento\Catalog\Model\Category $category)
863863
* Filter Product by Categories
864864
*
865865
* @param array $categoriesFilter
866+
* @return $this
866867
*/
867868
public function addCategoriesFilter(array $categoriesFilter)
868869
{
@@ -876,6 +877,7 @@ public function addCategoriesFilter(array $categoriesFilter)
876877
];
877878
$this->getSelect()->where($this->getConnection()->prepareSqlCondition('e.entity_id' , $selectCondition));
878879
}
880+
return $this;
879881
}
880882

881883
/**

app/code/Magento/Integration/Helper/Data.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public function mapResources(array $resources)
2121
foreach ($resources as $resource) {
2222
$item = [];
2323
$item['attr']['data-id'] = $resource['id'];
24-
$item['data'] = $resource['title'];
24+
$item['data'] = __($resource['title']);
2525
$item['children'] = [];
2626
if (isset($resource['children'])) {
2727
$item['state'] = 'open';

app/code/Magento/Rule/Model/Condition/AbstractCondition.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -441,6 +441,8 @@ public function getValueName()
441441
}
442442
if (!empty($valueArr)) {
443443
$value = implode(', ', $valueArr);
444+
} elseif (is_array($value)) {
445+
$value = implode(', ', $value);
444446
}
445447
return $value;
446448
}

lib/internal/Magento/Framework/Filesystem/Io/Sftp.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class Sftp extends AbstractIo
2020
const SSH2_PORT = 22;
2121

2222
/**
23-
* @var \Net_SFTP $_connection
23+
* @var \phpseclib\Net\SFTP $_connection
2424
*/
2525
protected $_connection = null;
2626

@@ -184,7 +184,7 @@ public function read($filename, $destination = null)
184184
*/
185185
public function write($filename, $source, $mode = null)
186186
{
187-
$mode = is_readable($source) ? NET_SFTP_LOCAL_FILE : NET_SFTP_STRING;
187+
$mode = is_readable($source) ? \phpseclib\Net\SFTP::SOURCE_LOCAL_FILE : \phpseclib\Net\SFTP::SOURCE_STRING;
188188
return $this->_connection->put($filename, $source, $mode);
189189
}
190190

lib/internal/Magento/Framework/Locale/Config.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ class Config implements \Magento\Framework\Locale\ConfigInterface
3131
'de_AT', /*German (Austria)*/
3232
'de_CH', /*German (Switzerland)*/
3333
'de_DE', /*German (Germany)*/
34+
'de_LU', /*German (Luxembourg)*/
3435
'el_GR', /*Greek (Greece)*/
3536
'en_AU', /*English (Australian)*/
3637
'en_CA', /*English (Canadian)*/
@@ -54,6 +55,7 @@ class Config implements \Magento\Framework\Locale\ConfigInterface
5455
'fr_CA', /*French (Canada)*/
5556
'fr_CH', /*French (Switzerland)*/
5657
'fr_FR', /*French (France)*/
58+
'fr_LU', /*French (Luxembourg)*/
5759
'gu_IN', /*Gujarati (India)*/
5860
'he_IL', /*Hebrew (Israel)*/
5961
'hi_IN', /*Hindi (India)*/

nginx.conf.sample

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
# # server 127.0.0.1:9000;
55
# # or socket
66
# server unix:/var/run/php5-fpm.sock;
7+
# server unix:/var/run/php/php7.0-fpm.sock;
78
# }
89
# server {
910
# listen 80;

0 commit comments

Comments
 (0)