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

Use the protocolName function

Zachary Kotlarek 12 жил өмнө
parent
commit
f3ecd7b459

+ 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