mirror of
https://github.com/flarum/core.git
synced 2025-08-08 01:16:52 +02:00
Unified two URL prefix variables into one
This commit is contained in:
@@ -30,11 +30,6 @@ class AbstractUrlGenerator
|
||||
*/
|
||||
protected $path;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $prefix = '';
|
||||
|
||||
/**
|
||||
* @param Application $app
|
||||
* @param RouteCollection $routes
|
||||
@@ -78,12 +73,6 @@ class AbstractUrlGenerator
|
||||
*/
|
||||
public function toBase()
|
||||
{
|
||||
$base = $this->app->url($this->path);
|
||||
|
||||
if (empty($this->prefix)) {
|
||||
return $base;
|
||||
} else {
|
||||
return $base . '/' . $this->prefix;
|
||||
}
|
||||
return $this->app->url($this->path);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user