mirror of
https://github.com/flarum/framework.git
synced 2024-12-11 21:43:38 +08:00
Automatically derive base_path from base_url
This commit is contained in:
parent
b0c17c8a60
commit
1a56498bc6
|
@ -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…
Reference in New Issue
Block a user