mirror of
https://github.com/flarum/core.git
synced 2025-10-20 11:18:28 +02:00
Change base URL etc. in config.php file
This commit is contained in:
@@ -21,6 +21,8 @@ class DefaultData implements ProvidesData
|
||||
'prefix' => '',
|
||||
];
|
||||
|
||||
protected $baseUrl = 'http://flarum.dev';
|
||||
|
||||
protected $adminUser = [
|
||||
'username' => 'admin',
|
||||
'password' => 'admin',
|
||||
@@ -28,12 +30,9 @@ class DefaultData implements ProvidesData
|
||||
];
|
||||
|
||||
protected $settings = [
|
||||
'admin_url' => 'http://flarum.dev/admin',
|
||||
'allow_post_editing' => 'reply',
|
||||
'allow_renaming' => '10',
|
||||
'allow_sign_up' => '1',
|
||||
'api_url' => 'http://flarum.dev/api.php',
|
||||
'base_url' => 'http://flarum.dev',
|
||||
'custom_less' => '',
|
||||
'default_locale' => 'en',
|
||||
'default_route' => '/all',
|
||||
@@ -60,6 +59,16 @@ class DefaultData implements ProvidesData
|
||||
$this->databaseConfiguration = $databaseConfiguration;
|
||||
}
|
||||
|
||||
public function getBaseUrl()
|
||||
{
|
||||
return $this->baseUrl;
|
||||
}
|
||||
|
||||
public function setBaseUrl($baseUrl)
|
||||
{
|
||||
$this->baseUrl = $baseUrl;
|
||||
}
|
||||
|
||||
public function getAdminUser()
|
||||
{
|
||||
return $this->adminUser;
|
||||
|
Reference in New Issue
Block a user