* fix a bug.

This commit is contained in:
wangyidong
2012-09-02 08:55:17 +00:00
parent a080b8cf63
commit 3859c8f4e9
2 changed files with 49 additions and 57 deletions
+1 -2
View File
@@ -396,9 +396,8 @@ class common extends control
public function getSysURL()
{
$httpType = (isset($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] == 'on') ? 'https' : 'http';
$httpPort = $_SERVER['SERVER_PORT'] == 80 ? '' : $_SERVER['SERVER_PORT'];
$httpHost = $_SERVER['HTTP_HOST'];
return "$httpType://$httpHost:$httpPort";
return "$httpType://$httpHost";
}
/**