mirror of
https://github.com/flarum/framework.git
synced 2025-02-21 09:11:40 +08:00
Automatically derive base_path from base_url
This commit is contained in:
parent
014bacb7ab
commit
6cee3b7160
@ -25,7 +25,7 @@ class ForumSerializer extends Serializer
|
||||
$attributes = [
|
||||
'title' => Core::config('forum_title'),
|
||||
'baseUrl' => Core::config('base_url'),
|
||||
'basePath' => Core::config('base_path'),
|
||||
'basePath' => parse_url(Core::config('base_url'), PHP_URL_PATH) ?: '',
|
||||
'apiUrl' => Core::config('api_url'),
|
||||
'welcomeTitle' => Core::config('welcome_title'),
|
||||
'welcomeMessage' => Core::config('welcome_message'),
|
||||
|
Loading…
x
Reference in New Issue
Block a user