* fix a bug for file link.

This commit is contained in:
wangyidong
2012-08-31 08:32:16 +00:00
parent 7788f10987
commit f3caba603e
3 changed files with 14 additions and 12 deletions
+3 -2
View File
@@ -393,9 +393,10 @@ class common extends control
*/
public function getSysURL()
{
$httpType = isset($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] == 'on' ? 'https' : 'http';
$httpType = (isset($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] == 'on') ? 'https' : 'http';
$httpPort = $_SERVER['SERVER_PORT'] == 80 ? '' : $_SERVER['SERVER_PORT'];
$httpHost = $_SERVER['HTTP_HOST'];
return "$httpType://$httpHost";
return "$httpType://$httpHost:$httpPort";
}
/**