Browse Source

remove globals from getserverpath original function

CauseFX 5 years ago
parent
commit
095a41d402
1 changed files with 0 additions and 5 deletions
  1. 0 5
      api/functions/normal-functions.php

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

@@ -675,11 +675,6 @@ function download($url, $path)
 // swagger
 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") {
 		$protocol = "https://";
 	} elseif (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off') {