Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
cdb2494a
Commit
cdb2494a
authored
Mar 16, 2012
by
Crell
Browse files
Remove broken BC shiv.
parent
a2b9b60d
Changes
2
Hide whitespace changes
Inline
Side-by-side
core/lib/Drupal/Core/EventSubscriber/PathSubscriber.php
View file @
cdb2494a
...
...
@@ -36,12 +36,6 @@ public function onKernelRequestPathResolve(GetResponseEvent $event) {
$path
=
ltrim
(
$request
->
getPathInfo
(),
'/'
);
// Temporary BC shiv to support automated tests that still rely on old-
// style dirty URLs.
if
(
isset
(
$_GET
[
'q'
]))
{
$path
=
$_GET
[
'q'
];
}
if
(
empty
(
$path
))
{
// @todo Temporary hack. Fix when configuration is injectable.
$path
=
variable_get
(
'site_frontpage'
,
'user'
);
...
...
core/lib/Drupal/Core/UrlMatcher.php
View file @
cdb2494a
...
...
@@ -38,15 +38,6 @@ public function match($pathinfo) {
// Symfony uses a prefixing / but we don't yet.
$dpathinfo
=
ltrim
(
$pathinfo
,
'/'
);
// Temporary BC shiv to support automated tests that still rely on old-
// style dirty URLs.
// @todo Remove this once testbot knows how to deal with Symfony-style
// dirty URLs.
if
(
isset
(
$_GET
[
'q'
]))
{
$dpathinfo
=
$_GET
[
'q'
];
$pathinfo
=
'/'
.
$dpathinfo
;
}
// Do our fancy frontpage logic.
if
(
empty
(
$dpathinfo
))
{
$dpathinfo
=
variable_get
(
'site_frontpage'
,
'user'
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment