mirror of
https://github.com/grocy/grocy.git
synced 2025-08-20 04:12:59 +00:00
Add option to not use URL rewriting
This commit is contained in:
@@ -18,9 +18,16 @@ class UrlManager
|
||||
|
||||
protected $BasePath;
|
||||
|
||||
public function ConstructUrl($relativePath)
|
||||
public function ConstructUrl($relativePath, $isResource = false)
|
||||
{
|
||||
return rtrim($this->BasePath, '/') . $relativePath;
|
||||
if (DISABLE_URL_REWRITING === false || $isResource === true)
|
||||
{
|
||||
return rtrim($this->BasePath, '/') . $relativePath;
|
||||
}
|
||||
else // Is not a resource and URL rewriting is disabled
|
||||
{
|
||||
return rtrim($this->BasePath, '/') . '/index.php' . $relativePath;
|
||||
}
|
||||
}
|
||||
|
||||
private function GetBaseUrl()
|
||||
|
Reference in New Issue
Block a user