mirror of
https://github.com/flarum/framework.git
synced 2024-11-25 09:41:49 +08:00
Fix config retrieval
This commit is contained in:
parent
9ec54ad892
commit
3b2a0697e2
|
@ -33,10 +33,10 @@ class Core
|
|||
|
||||
public static function url($name = null)
|
||||
{
|
||||
$url = static::config('url');
|
||||
$url = app('flarum.config')['url'];
|
||||
|
||||
if ($name) {
|
||||
$url .= '/' . static::config("paths.$name");
|
||||
$url .= '/' . app('flarum.config')['paths'][$name];
|
||||
}
|
||||
|
||||
return $url;
|
||||
|
|
Loading…
Reference in New Issue
Block a user