Skip to content
Snippets Groups Projects
Commit b7ff1162 authored by Larry Garfield's avatar Larry Garfield
Browse files

Revert the other use of the request object on utility functions.

parent a764bd3f
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -352,7 +352,7 @@ function drupal_match_path($path, $patterns) {
* @see request_path()
*/
function current_path() {
return request()->attributes->get('system_path');
return $_GET['q'];
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment