4
0
Эх сурвалжийг харах

remove globals from getserverpath original function

CauseFX 5 жил өмнө
parent
commit
095a41d402

+ 0 - 5
api/functions/normal-functions.php

@@ -675,11 +675,6 @@ function download($url, $path)
 // swagger
 // swagger
 function getServerPath($over = false)
 function getServerPath($over = false)
 {
 {
-	if ($over) {
-		if ($GLOBALS['PHPMAILER-domain'] !== '') {
-			return $GLOBALS['PHPMAILER-domain'];
-		}
-	}
 	if (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == "https") {
 	if (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == "https") {
 		$protocol = "https://";
 		$protocol = "https://";
 	} elseif (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off') {
 	} elseif (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off') {