Jelajahi Sumber

Use the protocolName function

Zachary Kotlarek 12 tahun lalu
induk
melakukan
f3ecd7b459
1 mengubah file dengan 1 tambahan dan 4 penghapusan
  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