The PHP Classes are now with backslash

git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@4490 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
2018-09-06 07:45:00 +00:00
parent 6b5158e9d2
commit d269917682
2 changed files with 9 additions and 9 deletions

View File

@@ -536,7 +536,7 @@ class route
$rcRegex = @preg_match ($regex, $url, $matches);
if ($rcRegex === false)
{
if (count (error_get_last()))
if (count (\error_get_last ()))
$this->error (new \Exception ("Invalid regex provided: $regex : ".
error_get_last()["message"], 500));
}
@@ -546,7 +546,7 @@ class route
echo "==> FOUND REGEX !\n";
$this->mapRoute = $route;
$params = array ();
$reflect = new ReflectionFunction ($function);
$reflect = new \ReflectionFunction ($function);
foreach ($reflect->getParameters() as $key=>$val)
{
if (isset ($matches[$val->name]))
@@ -557,7 +557,7 @@ class route
try
{
$data = call_user_func_array ($function, $params);
$data = \call_user_func_array ($function, $params);
if ($this->method () === "GET" && isset ($_SESSION))
$_SESSION["domframework"]["route"]["lastGet"] =
"/".$this->requestURL ();