Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

Commit 2b50883

Browse files
authored
MAGECLOUD-4080: Update default example in magento-vars.php (#6508)
1 parent 4dc9840 commit 2b50883

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

src/cloud/project/project-multi-sites.md

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -201,19 +201,11 @@ To pass variables using the `magento-vars.php` file:
201201
if (!isset($_SERVER['HTTP_HOST'])) {
202202
return false;
203203
}
204-
return strpos(str_replace('---', '.', $_SERVER['HTTP_HOST']), $host) === 0;
204+
return $_SERVER['HTTP_HOST'] === $host;
205205
}
206206
```
207207
{:.no-copy}
208208

209-
1. Change the `return` line in the `function` block.
210-
211-
```diff
212-
- return strpos(str_replace('---', '.', $_SERVER['HTTP_HOST']), $host) === 0;
213-
+ return $_SERVER['HTTP_HOST'] === $host;
214-
```
215-
{:.no-copy}
216-
217209
1. Move the commented `if` block so that it is _after_ the `function` block and no longer commented.
218210

219211
```php

0 commit comments

Comments
 (0)