Skip to content

Commit ddffc97

Browse files
committed
minor tweaks to the welcome page
1 parent 81ac674 commit ddffc97

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
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)