Fix config retrieval

This commit is contained in:
Franz Liedke 2015-08-27 00:58:56 +02:00
parent 9ec54ad892
commit 3b2a0697e2

View File

@ -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;