Skip to content

Commit 46b153a

Browse files
committed
Merge branch '4.x' into 4.next
2 parents 1634ac3 + b6d469e commit 46b153a

4 files changed

Lines changed: 9 additions & 4 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: CI
33
on:
44
push:
55
branches:
6-
- master
6+
- '4.x'
77
- '4.next'
88
pull_request:
99
branches:

templates/Pages/home.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,15 +87,15 @@
8787
<div class="message default text-center">
8888
<small>Please be aware that this page will not be shown if you turn off debug mode unless you replace templates/Pages/home.php with your own version.</small>
8989
</div>
90-
<!-- <div id="url-rewriting-warning" class="alert url-rewriting">
90+
<div id="url-rewriting-warning" style="padding: 1rem; background: #fcebea; color: #cc1f1a; border-color: #ef5753;">
9191
<ul>
9292
<li class="bullet problem">
9393
URL rewriting is not properly configured on your server.<br />
9494
1) <a target="_blank" rel="noopener" href="https://book.cakephp.org/4/en/installation.html#url-rewriting">Help me configure it</a><br />
9595
2) <a target="_blank" rel="noopener" href="https://book.cakephp.org/4/en/development/configuration.html#general-configuration">I don't / can't use URL rewriting</a>
9696
</li>
9797
</ul>
98-
</div> -->
98+
</div>
9999
<?php Debugger::checkSecurityKeys(); ?>
100100
</div>
101101
</div>

tests/bootstrap.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@
3131

3232
$_SERVER['PHP_SELF'] = '/';
3333

34-
Configure::write('App.fullBaseUrl', 'http://localhost');
34+
if (empty($_SERVER['HTTP_HOST'])) {
35+
Configure::write('App.fullBaseUrl', 'http://localhost');
36+
}
3537

3638
// DebugKit skips settings these connection config if PHP SAPI is CLI / PHPDBG.
3739
// But since PagesControllerTest is run with debug enabled and DebugKit is loaded

webroot/css/home.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,3 +70,6 @@ hr {
7070
padding: 10px;
7171
margin: 10px 0;
7272
}
73+
#url-rewriting-warning {
74+
display: none;
75+
}

0 commit comments

Comments
 (0)