mirror of
https://github.com/flarum/framework.git
synced 2025-02-27 06:44:27 +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)
|
public static function url($name = null)
|
||||||
{
|
{
|
||||||
$url = static::config('url');
|
$url = app('flarum.config')['url'];
|
||||||
|
|
||||||
if ($name) {
|
if ($name) {
|
||||||
$url .= '/' . static::config("paths.$name");
|
$url .= '/' . app('flarum.config')['paths'][$name];
|
||||||
}
|
}
|
||||||
|
|
||||||
return $url;
|
return $url;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user