GraphiQL in Backend
This commit is contained in:
@@ -1,16 +1,16 @@
|
||||
<?php
|
||||
|
||||
if(!function_exists("join_paths")) {
|
||||
function join_paths()
|
||||
{
|
||||
$paths = array();
|
||||
if (!function_exists('join_paths')) {
|
||||
function join_paths()
|
||||
{
|
||||
$paths = [];
|
||||
|
||||
foreach (func_get_args() as $arg) {
|
||||
if ($arg !== '') {
|
||||
$paths[] = $arg;
|
||||
}
|
||||
}
|
||||
|
||||
return preg_replace('#/+#', '/', join('/', $paths));
|
||||
foreach (func_get_args() as $arg) {
|
||||
if ($arg !== '') {
|
||||
$paths[] = $arg;
|
||||
}
|
||||
}
|
||||
|
||||
return preg_replace('#/+#', '/', join('/', $paths));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user