Przeglądaj źródła

Use the protocolName function

Zachary Kotlarek 12 lat temu
rodzic
commit
f3ecd7b459
1 zmienionych plików z 1 dodań i 4 usunięć
  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