Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 60e3de6

Browse files
committed
bug #33510 Minor tweaks to the welcome page (yceruto, javiereguiluz)
This PR was merged into the 4.4 branch. Discussion ---------- Minor tweaks to the welcome page | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #33189 (comment) | License | MIT | Doc PR | - /cc @fabpot Commits ------- acd5061 Some styling tweaks ddffc97 minor tweaks to the welcome page
2 parents 5d94ace + acd5061 commit 60e3de6

File tree

2 files changed

+32
-20
lines changed

2 files changed

+32
-20
lines changed

src/Symfony/Component/HttpKernel/EventListener/RouterListener.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,11 +164,11 @@ public static function getSubscribedEvents()
164164
private function createWelcomeResponse()
165165
{
166166
$version = Kernel::VERSION;
167-
$baseDir = realpath($this->projectDir).\DIRECTORY_SEPARATOR;
167+
$projectDir = realpath($this->projectDir).\DIRECTORY_SEPARATOR;
168168
$docVersion = substr(Kernel::VERSION, 0, 3);
169169

170170
ob_start();
171-
include __DIR__.'/../Resources/welcome.html.php';
171+
include \dirname(__DIR__).'/Resources/welcome.html.php';
172172

173173
return new Response(ob_get_clean(), Response::HTTP_NOT_FOUND);
174174
}

0 commit comments

Comments
 (0)