Skip to content

Commit 23f3268

Browse files
committed
Merge remote-tracking branch 'origin/MAGETWO-59622' into 2.1.8-develop-pr18
2 parents 89cb767 + 85ddb7d commit 23f3268

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

app/code/Magento/Cms/Setup/UpgradeData.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313

1414
class UpgradeData implements UpgradeDataInterface
1515
{
16+
/**
17+
* @deprecated
18+
*/
1619
const PRIVACY_COOKIE_PAGE_ID = 4;
1720

1821
/**
@@ -234,7 +237,10 @@ public function upgrade(ModuleDataSetupInterface $setup, ModuleContextInterface
234237
</table>
235238
</div>
236239
EOD;
237-
$privacyAndCookiePolicyPage = $this->createPage()->load(self::PRIVACY_COOKIE_PAGE_ID);
240+
$privacyAndCookiePolicyPage = $this->createPage()->load(
241+
'privacy-policy-cookie-restriction-mode',
242+
'identifier'
243+
);
238244
$privacyAndCookiePolicyPageId = $privacyAndCookiePolicyPage->getId();
239245
if ($privacyAndCookiePolicyPageId) {
240246
$privacyAndCookiePolicyPage->setContent($newPageContent);

0 commit comments

Comments
 (0)