Commit f816d73c authored by Sylvain's avatar Sylvain

Mise à jour du nom function get_query_array

parent 1f524830
......@@ -5,12 +5,12 @@ use Illuminate\Support\Collection;
use Illuminate\Support\Str;
use Illuminate\Support\Facades\Request;
if ( !function_exists('get_query_string')) {
if ( !function_exists('get_query_array')) {
/**
* Retourne un tableau avec les paramètres de l'url courante
* @return array Un tableau contenant les paramètres
*/
function get_query_string()
function get_query_array()
{
parse_str(Request::getQueryString(), $array);
......@@ -26,7 +26,7 @@ if (! function_exists('str_current_query')) {
*/
function str_current_query() : string
{
$queries = array_filter(get_query_string());
$queries = array_filter(get_query_array());
return http_build_query($queries);
}
}
......
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