Revert the other use of the request object on utility functions.
parent
a764bd3fbb
commit
b7ff116279
|
@ -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'];
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue