mirror of
https://github.com/typecho/typecho.git
synced 2025-04-14 06:41:53 +02:00
fix #1157
This commit is contained in:
parent
eb77897ab6
commit
58cb9105d4
@ -527,7 +527,7 @@ class Request
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
private function getUrlPrefix(): string
|
||||
public function getUrlPrefix(): string
|
||||
{
|
||||
if (empty($this->urlPrefix)) {
|
||||
if (defined('__TYPECHO_URL_PREFIX__')) {
|
||||
|
@ -188,6 +188,16 @@ class Request
|
||||
return $this->request->getPathInfo();
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取url前缀
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getUrlPrefix(): string
|
||||
{
|
||||
return $this->request->getUrlPrefix();
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据当前uri构造指定参数的uri
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user