瀏覽代碼

Use the protocolName function

Zachary Kotlarek 12 年之前
父節點
當前提交
f3ecd7b459
共有 1 個文件被更改,包括 1 次插入 和 4 次删除
  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