* set the webRoot in the config file.

This commit is contained in:
wangchunsheng
2011-03-07 06:15:12 +00:00
parent 00ff78d7e0
commit 3de026a83a
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -144,7 +144,7 @@ class installModel extends model
*/
public function getWebRoot()
{
return rtrim(str_replace('\\', '/', pathinfo($_SERVER['SCRIPT_NAME'], PATHINFO_DIRNAME)), '/') . '/';
return rtrim(str_replace('\\', '/', pathinfo($_SERVER['PHP_SELF'], PATHINFO_DIRNAME)), '/') . '/';
}
/**