Explorar o código

Use the protocolName function

Zachary Kotlarek %!s(int64=12) %!d(string=hai) anos
pai
achega
f3ecd7b459
Modificáronse 1 ficheiros con 1 adicións e 4 borrados
  1. 1 4
      web/includes/header.php

+ 1 - 4
web/includes/header.php

@@ -26,10 +26,7 @@ ENDOLA;
 
 function printJQuery() {
 	# Determine our protocol
-	$protocol = 'http';
-	if ($_SERVER['HTTPS']) {
-		$protocol = 'https';
-	}
+	$protocol = protocolName();
 
 	# Print
 	echo <<<ENDOLA