summaryrefslogtreecommitdiff
path: root/framework/Web/THttpRequest.php
diff options
context:
space:
mode:
Diffstat (limited to 'framework/Web/THttpRequest.php')
-rw-r--r--framework/Web/THttpRequest.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/framework/Web/THttpRequest.php b/framework/Web/THttpRequest.php
index 2ee7cd5f..029fb240 100644
--- a/framework/Web/THttpRequest.php
+++ b/framework/Web/THttpRequest.php
@@ -270,7 +270,7 @@ class THttpRequest extends TApplicationComponent implements IteratorAggregate,Ar
/**
* @return string entry script URL (w/o host part)
*/
- public function getApplicationPath()
+ public function getApplicationUrl()
{
return $_SERVER['SCRIPT_NAME'];
}
@@ -278,7 +278,7 @@ class THttpRequest extends TApplicationComponent implements IteratorAggregate,Ar
/**
* @return string application entry script file path (processed w/ realpath())
*/
- public function getPhysicalApplicationPath()
+ public function getApplicationFilePath()
{
return realpath($_SERVER['SCRIPT_FILENAME']);
}
@@ -452,13 +452,13 @@ class THttpRequest extends TApplicationComponent implements IteratorAggregate,Ar
$url=strtr($url,array($amp=>'/','?'=>'/','='=>'/'));
if(defined('SID') && SID != '')
$url.='?'.SID;
- return $this->getApplicationPath().'/'.$url;
+ return $this->getApplicationUrl().'/'.$url;
}
else
{
if(defined('SID') && SID != '')
$url.=$amp.SID;
- return $this->getApplicationPath().'?'.$url;
+ return $this->getApplicationUrl().'?'.$url;
}
}