Skip to content

Commit

Permalink
Merge pull request #943 from magento-engcom/develop-prs
Browse files Browse the repository at this point in the history
[EngCom] Public Pull Requests
  • Loading branch information
vrann authored Mar 21, 2017
2 parents ee6ee6e + f92c5fe commit 2613378
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 5 deletions.
3 changes: 2 additions & 1 deletion app/code/Magento/Backend/Block/Menu.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
*
* @method \Magento\Backend\Block\Menu setAdditionalCacheKeyInfo(array $cacheKeyInfo)
* @method array getAdditionalCacheKeyInfo()
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
*/
class Menu extends \Magento\Backend\Block\Template
{
Expand Down Expand Up @@ -381,7 +382,7 @@ public function renderNavigation($menu, $level = 0, $limit = 0, $colBrakes = [])
$itemName = substr($menuId, strrpos($menuId, '::') + 2);
$itemClass = str_replace('_', '-', strtolower($itemName));

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
<?php
$idSuffix = $block->getIdSuffix() ? $block->getIdSuffix() : '';
/** @var \Magento\Bundle\Pricing\Render\FinalPriceBox $block */
$productId = $block->getSaleableItem()->getId();


/** @var \Magento\Bundle\Pricing\Price\FinalPrice $finalPriceModel */
$finalPriceModel = $block->getPrice();
$minimalPrice = $finalPriceModel->getMinimalPrice();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -863,6 +863,7 @@ public function addCategoryFilter(\Magento\Catalog\Model\Category $category)
* Filter Product by Categories
*
* @param array $categoriesFilter
* @return $this
*/
public function addCategoriesFilter(array $categoriesFilter)
{
Expand All @@ -876,6 +877,7 @@ public function addCategoriesFilter(array $categoriesFilter)
];
$this->getSelect()->where($this->getConnection()->prepareSqlCondition('e.entity_id' , $selectCondition));
}
return $this;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion app/code/Magento/Integration/Helper/Data.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public function mapResources(array $resources)
foreach ($resources as $resource) {
$item = [];
$item['attr']['data-id'] = $resource['id'];
$item['data'] = $resource['title'];
$item['data'] = __($resource['title']);
$item['children'] = [];
if (isset($resource['children'])) {
$item['state'] = 'open';
Expand Down
2 changes: 2 additions & 0 deletions app/code/Magento/Rule/Model/Condition/AbstractCondition.php
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,8 @@ public function getValueName()
}
if (!empty($valueArr)) {
$value = implode(', ', $valueArr);
} elseif (is_array($value)) {
$value = implode(', ', $value);
}
return $value;
}
Expand Down
4 changes: 2 additions & 2 deletions lib/internal/Magento/Framework/Filesystem/Io/Sftp.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class Sftp extends AbstractIo
const SSH2_PORT = 22;

/**
* @var \Net_SFTP $_connection
* @var \phpseclib\Net\SFTP $_connection
*/
protected $_connection = null;

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

Expand Down
2 changes: 2 additions & 0 deletions lib/internal/Magento/Framework/Locale/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ class Config implements \Magento\Framework\Locale\ConfigInterface
'de_AT', /*German (Austria)*/
'de_CH', /*German (Switzerland)*/
'de_DE', /*German (Germany)*/
'de_LU', /*German (Luxembourg)*/
'el_GR', /*Greek (Greece)*/
'en_AU', /*English (Australian)*/
'en_CA', /*English (Canadian)*/
Expand All @@ -54,6 +55,7 @@ class Config implements \Magento\Framework\Locale\ConfigInterface
'fr_CA', /*French (Canada)*/
'fr_CH', /*French (Switzerland)*/
'fr_FR', /*French (France)*/
'fr_LU', /*French (Luxembourg)*/
'gu_IN', /*Gujarati (India)*/
'he_IL', /*Hebrew (Israel)*/
'hi_IN', /*Hindi (India)*/
Expand Down
1 change: 1 addition & 0 deletions nginx.conf.sample
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# # server 127.0.0.1:9000;
# # or socket
# server unix:/var/run/php5-fpm.sock;
# server unix:/var/run/php/php7.0-fpm.sock;
# }
# server {
# listen 80;
Expand Down

0 comments on commit 2613378

Please sign in to comment.