Commit cdb2494a authored by Crell's avatar Crell
Browse files

Remove broken BC shiv.

parent a2b9b60d
......@@ -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');
......
......@@ -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');
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment