- remove the $config global declare.

This commit is contained in:
wangchunsheng
2010-12-01 12:34:40 +00:00
parent 77e8cad897
commit 0431d2cf57
-1
View File
@@ -225,7 +225,6 @@ class common extends control
*/
public function getSysURL()
{
global $config;
$httpType = isset($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] == 'on' ? 'https' : 'http';
$httpHost = $_SERVER['HTTP_HOST'];
return "$httpType://$httpHost";