Skip to content

Commit c100f0b

Browse files
author
Stanislav Idolov
authored
ENGCOM-1147: #7816: Customer_account.xml file abused (2.1) #14323
2 parents d18fda2 + 2ea01f6 commit c100f0b

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

app/code/Magento/Customer/Controller/Account/Index.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,6 @@ public function __construct(
3535
*/
3636
public function execute()
3737
{
38-
/** @var \Magento\Framework\View\Result\Page $resultPage */
39-
$resultPage = $this->resultPageFactory->create();
40-
$resultPage->getConfig()->getTitle()->set(__('My Account'));
41-
return $resultPage;
38+
return $this->resultPageFactory->create();
4239
}
4340
}

app/code/Magento/Customer/view/frontend/layout/customer_account.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
*/
77
-->
88
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="2columns-left" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd" label="Customer My Account (All Pages)" design_abstraction="custom">
9+
<head>
10+
<title>My Account</title>
11+
</head>
912
<body>
1013
<attribute name="class" value="account"/>
1114
<referenceContainer name="sidebar.main">

app/code/Magento/Paypal/view/frontend/layout/customer_account.xml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@
66
*/
77
-->
88
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
9-
<head>
10-
<title>Billing Agreements</title>
11-
</head>
129
<body>
1310
<referenceBlock name="customer_account_navigation">
1411
<block class="Magento\Framework\View\Element\Html\Link\Current" name="customer-account-navigation-billing-agreements-link">

0 commit comments

Comments
 (0)