mirror of
https://github.com/flarum/framework.git
synced 2025-01-07 19:13:37 +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 = [
|
$attributes = [
|
||||||
'title' => Core::config('forum_title'),
|
'title' => Core::config('forum_title'),
|
||||||
'baseUrl' => Core::config('base_url'),
|
'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'),
|
'apiUrl' => Core::config('api_url'),
|
||||||
'welcomeTitle' => Core::config('welcome_title'),
|
'welcomeTitle' => Core::config('welcome_title'),
|
||||||
'welcomeMessage' => Core::config('welcome_message'),
|
'welcomeMessage' => Core::config('welcome_message'),
|
||||||
|
|
Loading…
Reference in New Issue
Block a user