From 2b37e54dbbb6e36034ab7e8530aa08d8b9b10912 Mon Sep 17 00:00:00 2001 From: Pavel Belyaev Date: Sun, 6 Jun 2021 01:32:25 +0500 Subject: [PATCH] add full url --- CLASSES/core/LE_REQUEST.php | 4 +++- LE/load_mod.php | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CLASSES/core/LE_REQUEST.php b/CLASSES/core/LE_REQUEST.php index c0a0099..4ec44a3 100644 --- a/CLASSES/core/LE_REQUEST.php +++ b/CLASSES/core/LE_REQUEST.php @@ -41,9 +41,11 @@ class LE_REQUEST { $query= isset($s['REQUEST_URI']) ? $s['REQUEST_URI'] : ''; $query_clr = preg_replace('!\?.*?$!','',$query); + + $full_url = $scheme."://".$host_full.$query; - return compact('ssl','port','scheme','standart_port','host','host_full','query','query_clr','protocol'); + return compact('ssl','port','scheme','standart_port','host','host_full','query','query_clr','protocol','full_url'); } diff --git a/LE/load_mod.php b/LE/load_mod.php index 92b77cc..cd7a3cf 100644 --- a/LE/load_mod.php +++ b/LE/load_mod.php @@ -1,6 +1,8 @@ init_path!==false)