Skip to content

Commit

Permalink
Merge pull request #1734 from magento-engcom/2.2-develop-prs
Browse files Browse the repository at this point in the history
[EngCom] Public Pull Requests - 2.2-develop
 - MAGETWO-84098: Webshop throws an exception when sharing wishlist with RSS enabled #12276
 - MAGETWO-84081: 9684: No ACL set for integrations #12332
 - MAGETWO-84006: Fix robots.txt content type to 'text/plain' #12310
 - MAGETWO-83977: Handle empty or incorrect lines in a language CSV #12304
  • Loading branch information
ishakhsuvarov authored Nov 18, 2017
2 parents f2f94cf + 56e8d72 commit b05a957
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 5 deletions.
20 changes: 20 additions & 0 deletions app/code/Magento/Integration/etc/acl.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0"?>
<!--
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Acl/etc/acl.xsd">
<acl>
<resources>
<resource id="Magento_Backend::admin">
<resource id="Magento_Backend::system">
<resource id="Magento_Integration::extensions" title="System Extensions" translate="title" sortOrder="30">
<resource id="Magento_Integration::integrations" title="System Integrations" translate="title" sortOrder="40" />
</resource>
</resource>
</resource>
</resources>
</acl>
</config>
1 change: 1 addition & 0 deletions app/code/Magento/Robots/Controller/Index/Index.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ public function execute()
/** @var Page $resultPage */
$resultPage = $this->resultPageFactory->create(true);
$resultPage->addHandle('robots_index_index');
$resultPage->setHeader('Content-Type', 'text/plain');
return $resultPage;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ public function testExecute()
$resultPageMock->expects($this->once())
->method('addHandle')
->with('robots_index_index');
$resultPageMock->expects($this->once())
->method('setHeader')
->with('Content-Type', 'text/plain');

$this->resultPageFactory->expects($this->any())
->method('create')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
-->
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<body>
<referenceContainer name="root">
<block class="Magento\Wishlist\Block\Rss\EmailLink" name="wishlist.email.rss" cacheable="false"/>
</referenceContainer>
<block class="Magento\Wishlist\Block\Rss\EmailLink" name="wishlist.email.rss" cacheable="false"/>
</body>
</page>
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
four and 75/100,4.75
four and 5/10,4.50
four and 5/10,4.50

4 changes: 3 additions & 1 deletion lib/internal/Magento/Framework/App/Language/Dictionary.php
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,9 @@ private function readPackCsv($vendor, $package)
foreach ($foundCsvFiles as $foundCsvFile) {
$file = $directoryRead->openFile($foundCsvFile);
while (($row = $file->readCsv()) !== false) {
$result[$row[0]] = $row[1];
if (is_array($row) && count($row) > 1) {
$result[$row[0]] = $row[1];
}
}
}
}
Expand Down

0 comments on commit b05a957

Please sign in to comment.